pub struct Panel {
pub section: SectionKey,
pub key: String,
pub colour: String,
pub polygons: Vec<Vec<[f64; 3]>>,
pub sz: Vec<Vec<[f64; 2]>>,
}Expand description
The filled polygons of one trace on one section, in the scene’s (x, y, z).
Fields§
§section: SectionKeyThe section the polygons stand on.
key: StringThe trace (surface) they fill from, by key - FillChoice::key.
colour: StringTheir colour: the drawing’s.
polygons: Vec<Vec<[f64; 3]>>Each polygon’s vertices, not closed.
sz: Vec<Vec<[f64; 2]>>The same polygons in the section’s own (s, z), vertex for vertex -
where a polygon is flat, so where it is triangulated: unrolled from its
3D vertices instead, a trace folding back on itself would fold it too.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Panel
impl<'de> Deserialize<'de> for Panel
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 Panel
Auto Trait Implementations§
impl Freeze for Panel
impl RefUnwindSafe for Panel
impl Send for Panel
impl Sync for Panel
impl Unpin for Panel
impl UnsafeUnpin for Panel
impl UnwindSafe for Panel
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