Skip to main content

Tessellation

Struct Tessellation 

Source
pub struct Tessellation { /* private fields */ }

Implementations§

Source§

impl Tessellation

Source

pub fn mesh(&self) -> &Mesh<D>

Source

pub fn normals(&self) -> &TensorRank1Vec2D<D, 0>

Source

pub fn bvh(&self) -> &BoundingVolumeHierarchy<D>

Source

pub fn smooth(&mut self, smoothing: Smoothing)

Source

pub fn smooth_welded(&mut self, smoothing: Smoothing)

Source§

impl Tessellation

Source

pub fn dualize( &self, balancing: Balancing, scale: Scalar, ) -> Result<Mesh<D>, &'static str>

Source§

impl Tessellation

Source

pub fn shape_diameter_function( &self, half_angle: Scalar, rings: usize, azimuthal: usize, ) -> Vector

Trait Implementations§

Source§

impl From<&Tessellation> for BoundingVolumeHierarchy<3>

Source§

fn from(tessellation: &Tessellation) -> Self

Converts to this type from the input type.
Source§

impl<T> From<Grid<3, T>> for Tessellation
where T: Copy + Default + Ord,

Source§

fn from(voxels: Voxels<T>) -> Self

Converts to this type from the input type.
Source§

impl From<Mesh<D>> for Tessellation

Source§

fn from(mesh: Mesh<D>) -> Self

Converts to this type from the input type.
Source§

impl From<Tessellation> for (Connectivities, Coordinates<D>, TensorRank1Vec2D<D, 0>)

Source§

fn from(tessellation: Tessellation) -> Self

Converts to this type from the input type.
Source§

impl From<Tessellation> for Mesh<D>

Source§

fn from(tessellation: Tessellation) -> Self

Converts to this type from the input type.
Source§

impl TryFrom<&Path> for Tessellation

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(path: &Path) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<P> Write<P> for Tessellation
where P: AsRef<Path>,

Source§

type Error = Error

Source§

fn write(&self, path: P) -> Result<(), Self::Error>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.