pub struct SectionDrawing {
pub label: String,
pub hatch: Vec<Vec<[f64; 2]>>,
pub cut: Vec<Vec<[f64; 2]>>,
pub texts: Vec<SheetText>,
}Expand description
A section placement’s own marks: the hatch over its cut faces and the
SECTION A-A caption under the drawing.
The cut OUTLINE is not here — it is in ViewDrawing::edges with every
other model line, because the clip’s new boundary edges go through the very
same weld, classify and chain pass the rest of the model does. One
extractor, so the ink and the hatch cannot disagree about where the cut is.
Fields§
§label: StringThe section’s letter.
hatch: Vec<Vec<[f64; 2]>>The cut face’s hatch: parallel 45\u{00B0} lines clipped to the cut region by
an even-odd crossing count against Self::cut.
cut: Vec<Vec<[f64; 2]>>The cut region’s boundary, in paper millimetres: one polyline per trimmed piece of the plane’s curve with a face, sampled from the exact curve and oriented consistently round the region (their shoelace sum is the cut area, the holes taken out). In the mesh approximation, one segment per display triangle the plane cuts instead. What the hatch was clipped to, and what a reader can check the hatched region against.
texts: Vec<SheetText>The SECTION A-A caption.
Trait Implementations§
Source§impl Clone for SectionDrawing
impl Clone for SectionDrawing
Source§impl Debug for SectionDrawing
impl Debug for SectionDrawing
Source§impl PartialEq for SectionDrawing
impl PartialEq for SectionDrawing
Source§impl Serialize for SectionDrawing
impl Serialize for SectionDrawing
impl StructuralPartialEq for SectionDrawing
Auto Trait Implementations§
impl Freeze for SectionDrawing
impl RefUnwindSafe for SectionDrawing
impl Send for SectionDrawing
impl Sync for SectionDrawing
impl Unpin for SectionDrawing
impl UnsafeUnpin for SectionDrawing
impl UnwindSafe for SectionDrawing
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more