pub struct TrianglePiece {
pub surface: NurbsSurface,
pub corners: [[f64; 3]; 4],
}Expand description
One tensor patch of a conversion and the bilinear map from its (s, t)
unit square into the triangle: barycentric corners [Q00, Q10, Q01, Q11],
φ(s, t) = (1−s)(1−t)Q00 + s(1−t)Q10 + (1−s)t Q01 + st Q11.
Fields§
§surface: NurbsSurface§corners: [[f64; 3]; 4]Implementations§
Source§impl TrianglePiece
impl TrianglePiece
Trait Implementations§
Source§impl Clone for TrianglePiece
impl Clone for TrianglePiece
Auto Trait Implementations§
impl !Freeze for TrianglePiece
impl !RefUnwindSafe for TrianglePiece
impl !Sync for TrianglePiece
impl Forget for TrianglePiece
impl Move for TrianglePiece
impl Send for TrianglePiecewhere
RawVecInner: Send,
Cell<bool>: Send,
BoxRaw<[(f64, Vec3)]>: Send,
BoxRaw<[SeedBlock]>: Send,
Arc<[f64]>: Send,
Arc<[Vec3]>: Send,
Arc<[CellBox]>: Send,
Arc<[CellTreeNode]>: Send,
Arc<Mutex<HashMap<(u32, u32), Vec3, FxBuildHasher>>>: Send,
Arc<Mutex<HashMap<usize, Option<CellBox>, FxBuildHasher>>>: Send,
Arc<SurfacePatches>: Send,
impl Unpin for TrianglePiecewhere
*const u8 is !null: Unpin,
Box<[(f64, Vec3)]>: Unpin,
Box<[SeedBlock]>: Unpin,
Arc<[f64]>: Unpin,
Arc<[Vec3]>: Unpin,
Arc<[CellBox]>: Unpin,
Arc<[CellTreeNode]>: Unpin,
Arc<Mutex<HashMap<(u32, u32), Vec3, FxBuildHasher>>>: Unpin,
Arc<Mutex<HashMap<usize, Option<CellBox>, FxBuildHasher>>>: Unpin,
Arc<SurfacePatches>: Unpin,
impl UnsafeUnpin for TrianglePiecewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<f64>: UnsafeUnpin,
PhantomData<Vec<Vec4>>: UnsafeUnpin,
PhantomData<Vec4>: UnsafeUnpin,
*const [(f64, Vec3)] is !null: UnsafeUnpin,
PhantomData<[(f64, Vec3)]>: UnsafeUnpin,
*const [SeedBlock] is !null: UnsafeUnpin,
PhantomData<[SeedBlock]>: UnsafeUnpin,
PhantomData<(f64, f64, Vec3)>: UnsafeUnpin,
PhantomData<SampleBlock>: UnsafeUnpin,
PhantomData<Vec<SampleBlock>>: UnsafeUnpin,
PhantomData<Vec3>: UnsafeUnpin,
*const ArcInner<[f64]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[f64]>>: UnsafeUnpin,
*const ArcInner<[Vec3]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[Vec3]>>: UnsafeUnpin,
*const ArcInner<[CellBox]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[CellBox]>>: UnsafeUnpin,
*const ArcInner<[CellTreeNode]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[CellTreeNode]>>: UnsafeUnpin,
*const ArcInner<Mutex<HashMap<(u32, u32), Vec3, FxBuildHasher>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<HashMap<(u32, u32), Vec3, FxBuildHasher>>>>: UnsafeUnpin,
*const ArcInner<Mutex<HashMap<usize, Option<CellBox>, FxBuildHasher>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<HashMap<usize, Option<CellBox>, FxBuildHasher>>>>: UnsafeUnpin,
*const ArcInner<SurfacePatches> is !null: UnsafeUnpin,
PhantomData<ArcInner<SurfacePatches>>: UnsafeUnpin,
impl UnwindSafe for TrianglePiecewhere
RawVecInner: UnwindSafe,
BoxRaw<[(f64, Vec3)]>: UnwindSafe,
BoxRaw<[SeedBlock]>: UnwindSafe,
Arc<[f64]>: UnwindSafe,
Arc<[Vec3]>: UnwindSafe,
Arc<[CellBox]>: UnwindSafe,
Arc<[CellTreeNode]>: UnwindSafe,
Arc<Mutex<HashMap<(u32, u32), Vec3, FxBuildHasher>>>: UnwindSafe,
Arc<Mutex<HashMap<usize, Option<CellBox>, FxBuildHasher>>>: UnwindSafe,
Arc<SurfacePatches>: UnwindSafe,
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