#[non_exhaustive]pub struct ImprintPieceRecord {
pub id: u64,
pub curve: NurbsCurve,
pub t0: f64,
pub t1: f64,
pub start_vertex_id: u64,
pub end_vertex_id: u64,
pub pcurves: Vec<FacePcurve>,
pub support_faces: [FaceKey; 2],
pub shared_edge: Option<(u8, u64, bool)>,
pub certified_ruling_side: Option<CertifiedRulingPiece>,
}Expand description
Not exhaustive: a new field is not a breaking change. Outside this crate,
build one with ImprintPieceRecord::new.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: u64§curve: NurbsCurve§t0: f64§t1: f64§start_vertex_id: u64§end_vertex_id: u64§pcurves: Vec<FacePcurve>§support_faces: [FaceKey; 2]OCCT common-block / IsExistingPaveBlock (B2): when this SSI section
curve was found to COINCIDE along its whole span with an EXISTING
boundary edge of one of its support faces, the section is not a new
1-cell — it IS that boundary edge. Records (operand, edge_id, aligned)
of the existing edge to REUSE; aligned is whether the section’s
start→end runs the same direction as the edge’s start→end. The
assembler then resolves this piece to the shared boundary edge’s
identity so both operands reference ONE edge (no duplicate section /
one-use edge). None = an ordinary freshly-minted section (the
historical behaviour; also what BREP_SHARED_SECTION_EDGE=0 forces).
certified_ruling_side: Option<CertifiedRulingPiece>Implementations§
Source§impl ImprintPieceRecord
impl ImprintPieceRecord
Sourcepub fn new(
id: u64,
curve: NurbsCurve,
[t0, t1]: [f64; 2],
[start_vertex_id, end_vertex_id]: [u64; 2],
pcurves: Vec<FacePcurve>,
support_faces: [FaceKey; 2],
) -> Self
pub fn new( id: u64, curve: NurbsCurve, [t0, t1]: [f64; 2], [start_vertex_id, end_vertex_id]: [u64; 2], pcurves: Vec<FacePcurve>, support_faces: [FaceKey; 2], ) -> Self
A freshly minted section piece: the curve over [t0, t1] from vertex
[start, end], with its pcurves on the two support faces. It shares no
existing edge and carries no certified ruling side; set shared_edge
(or call Self::with_shared_edge) when it reuses a boundary edge.
This piece resolved to the existing boundary edge (operand, edge_id, aligned), or to none.