pub enum Geometry {
Group,
Sphere {
radius_m: f64,
},
Torus {
major_radius_m: f64,
minor_radius_m: f64,
},
Box {
size_m: Vec3,
},
Cylinder {
radius_m: f64,
height_m: f64,
},
Plane {
width_m: f64,
depth_m: f64,
},
Line {
from_m: Vec3,
to_m: Vec3,
},
Mesh {
asset: String,
},
}Expand description
A built-in primitive, grouping node, or adapter-owned mesh reference.
Variants§
Group
A non-drawable parent for child entities.
Sphere
UV sphere centred on the local origin.
Torus
Torus centred on the local origin, around the Y axis.
Fields
Box
Axis-aligned box centred on the local origin.
Cylinder
Cylinder centred on the local origin and aligned with the Y axis.
Plane
Horizontal XZ plane centred on the local origin.
Line
A two-vertex line segment.
Mesh
An opaque asset supplied and tessellated by a platform adapter.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Geometry
impl<'de> Deserialize<'de> for Geometry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Geometry
Auto Trait Implementations§
impl Freeze for Geometry
impl RefUnwindSafe for Geometry
impl Send for Geometry
impl Sync for Geometry
impl Unpin for Geometry
impl UnsafeUnpin for Geometry
impl UnwindSafe for Geometry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more