pub struct MeshChanges {
pub id: MeshId,
pub changes: Option<ChangeSet>,
pub placement_changed: bool,
pub added: bool,
pub removed: bool,
pub colors_dirty: Option<Vec<VertexId>>,
pub normals_dirty: Option<Vec<VertexId>>,
pub fields_changed: Vec<FieldId>,
pub sections_changed: Vec<SectionId>,
pub channels_written: Vec<String>,
}Expand description
What happened to one mesh since the subscriber’s last
Scene::take_changes_for (or
Scene::take_changes for the default
subscriber).
Fields§
§id: MeshIdThe mesh. For a removed mesh this id no longer matches.
changes: Option<ChangeSet>The merged changes of every commit, undo and redo since the last
call. None means “treat everything as changed”: the mesh was added
or compacted, or an undo or redo touching it failed with
SceneError::Corrupted.
placement_changed: boolTrue if the placement changed at any point since the last call, even if it was changed back.
added: boolThe mesh was added since the last call.
removed: boolThe mesh was removed since the last call.
colors_dirty: Option<Vec<VertexId>>The vertices whose colours changed since the last call, ascending
without duplicates. Some of an empty list when no colour changed;
None means “every colour may have changed” (redraw them all).
normals_dirty: Option<Vec<VertexId>>The vertices whose normals changed since the last call, with the
same semantics as MeshChanges::colors_dirty: ascending without
duplicates, None for “every normal may have changed”. Only
reported while normals are on (see
Scene::set_normals), apart from the
None of an added or fully changed mesh.
fields_changed: Vec<FieldId>The fields on this mesh whose values changed since the last call, each once.
sections_changed: Vec<SectionId>The sections whose result for this mesh changed since the last call (recomputed to a different result, removed, or no longer selecting the mesh), each once, in the order first reported.
channels_written: Vec<String>The channels written through
Scene::derived_channel_mut,
added with Scene::add_channel or
removed with Scene::remove_channel,
or dropped or restored as a whole by an edit, its undo or redo
(ChangeSet::channels_toggled),
since the last call, each name once, in the order first reported. A
derived_channel_mut call counts as a write whether or not the slice
is then written.
Trait Implementations§
Source§impl Clone for MeshChanges
impl Clone for MeshChanges
Source§fn clone(&self) -> MeshChanges
fn clone(&self) -> MeshChanges
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more