pub enum Geometry {
Mesh(Mesh),
Components(Components),
SliceStack(ResourceId),
VolumetricStack(ResourceId),
BooleanShape(BooleanShape),
DisplacementMesh(DisplacementMesh),
}Expand description
The geometric data contained in an object.
Represents the different types of geometry that can be stored in a 3MF object. The basic types are meshes and component assemblies, with various extensions adding support for slices, voxels, boolean operations, and displacement mapping.
Variants§
Mesh(Mesh)
A triangle mesh (the most common geometry type).
Components(Components)
A hierarchical assembly of other objects via components.
SliceStack(ResourceId)
A stack of 2D slices for layer-based printing (Slice Extension). References a slice stack resource by ID.
VolumetricStack(ResourceId)
Voxel-based volumetric data (Volumetric Extension). References a volumetric stack resource by ID.
BooleanShape(BooleanShape)
Constructive solid geometry from boolean operations (Boolean Operations Extension).
DisplacementMesh(DisplacementMesh)
A mesh with displacement mapping for fine surface detail (Displacement Extension).
Implementations§
Source§impl Geometry
impl Geometry
Sourcepub fn has_content(&self) -> bool
pub fn has_content(&self) -> bool
Returns true if this geometry contains actual content (non-empty mesh, components, boolean shapes, or displacement meshes).
A default-constructed Geometry::Mesh(Mesh::default()) has no content
(no vertices, no triangles). This is the default return from
parse_object_geometry when no <mesh> or <components> child element
is present.