Struct gut::mesh::builder::GridBuilder[][src]

pub struct GridBuilder {
    pub rows: usize,
    pub cols: usize,
    pub orientation: AxisPlaneOrientation,
}

Parameters that define a grid that lies in one of the 3 axis planes in 3D space.

Fields

rows: usize

Number of grid cells in each column.

cols: usize

Number of grid cells in each row.

orientation: AxisPlaneOrientation

Axis orientation of the grid.

Implementations

impl GridBuilder[src]

pub fn build(self) -> PolyMesh<f64>[src]

Generate a [-1,1]x[-1,1] mesh grid with the given cell resolution and grid orientation. The grid nodes are spcified in row major order.

Trait Implementations

impl Clone for GridBuilder[src]

impl Copy for GridBuilder[src]

impl Debug for GridBuilder[src]

impl PartialEq<GridBuilder> for GridBuilder[src]

impl StructuralPartialEq for GridBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsSlice<T> for T[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneBytes for T where
    T: 'static + Clone
[src]

impl<T> CopyElem for T where
    T: Any + Copy
[src]

impl<T> DebugBytes for T where
    T: 'static + Debug
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> DropBytes for T where
    T: 'static, 
[src]

impl<T> Elem for T where
    T: Any + DropBytes
[src]

impl<T> From<T> for T[src]

impl<'a, S, I> Get<'a, I> for S where
    I: GetIndex<'a, S>, 
[src]

type Output = <I as GetIndex<'a, S>>::Output

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<S, I> Isolate<I> for S where
    I: IsolateIndex<S>, 
[src]

type Output = <I as IsolateIndex<S>>::Output

impl<T> PartialEqBytes for T where
    T: 'static + PartialEq<T>, 
[src]

impl<T> Pod for T where
    T: 'static + Copy + Send + Sync + Any
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, N> PushArrayToVec<N> for T where
    T: Clone,
    N: Array<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.