pub struct Link {
pub edge: EdgeId,
pub forward: bool,
pub faces: [FaceId; 2],
}Expand description
One edge of a chain, as the chain runs along it: along the edge’s own
direction, forward, or against it; with the faces on its left and
right as it runs (seen from outside the solid).
Fields§
§edge: EdgeId§forward: bool§faces: [FaceId; 2]Implementations§
Source§impl Link
impl Link
Sourcepub fn tangent(
&self,
normals: [Vector3; 2],
along: &Vector3,
p: &Vector3,
) -> GeopResult<Vector3>
pub fn tangent( &self, normals: [Vector3; 2], along: &Vector3, p: &Vector3, ) -> GeopResult<Vector3>
The unit tangent of the edge at p, where its faces’ normals there
are normals: square to both, turned to run along the link. An
error where the faces could meet tangentially.
pub fn new(model: &Model, edge: EdgeId, forward: bool) -> GeopResult<Self>
pub fn reversed(&self) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Link
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnsafeUnpin for Link
impl UnwindSafe for Link
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