pub struct RoofVertex {
pub position: Point3,
pub exact: [f32; 3],
pub node: Option<NodeId>,
}Expand description
One corner of a roof.
Fields§
§position: Point3The corner’s position, rounded to the integer lattice.
z is Profile::height_at the corner’s offset.
exact: [f32; 3]The corner’s unrounded position.
Rounding z to the lattice tilts each panel very slightly, so a roof
built from RoofVertex::position is planar only to within half a
unit. Use this when exact planarity matters — a renderer computing
normals, say. It mirrors Node::exact, for the same reason.
node: Option<NodeId>The skeleton node this corner was raised from.
None for a corner a Profile::Mansard’s break line introduced,
which lies partway along a skeleton arc rather than at either end of it.
Trait Implementations§
Source§impl Clone for RoofVertex
impl Clone for RoofVertex
Source§fn clone(&self) -> RoofVertex
fn clone(&self) -> RoofVertex
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RoofVertex
Source§impl Debug for RoofVertex
impl Debug for RoofVertex
Source§impl<'de> Deserialize<'de> for RoofVertex
impl<'de> Deserialize<'de> for RoofVertex
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
Source§impl PartialEq for RoofVertex
impl PartialEq for RoofVertex
Source§impl Serialize for RoofVertex
impl Serialize for RoofVertex
impl StructuralPartialEq for RoofVertex
Auto Trait Implementations§
impl Freeze for RoofVertex
impl RefUnwindSafe for RoofVertex
impl Send for RoofVertex
impl Sync for RoofVertex
impl Unpin for RoofVertex
impl UnsafeUnpin for RoofVertex
impl UnwindSafe for RoofVertex
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