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

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.

Methods

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 PartialEq<GridBuilder> for GridBuilder[src]

impl Debug for GridBuilder[src]

impl StructuralPartialEq for GridBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Bytes for T[src]

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

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

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

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 = !

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.

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

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

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