pub struct Grid { /* private fields */ }Expand description
An IJK grid’s cells in the scene’s system, before any section cuts them - what a cache keeps while the trace moves.
Implementations§
Source§impl Grid
impl Grid
Sourcepub fn from_patch(patch: &Patch) -> Result<Grid, String>
pub fn from_patch(patch: &Patch) -> Result<Grid, String>
The cells of a patch read by energyml_geometry and placed in the
scene. A patch that is not made of hexahedra is refused by name.
Sourcepub fn cut(&self, sections: &[SectionTrace]) -> Vec<SurfaceCut>
pub fn cut(&self, sections: &[SectionTrace]) -> Vec<SurfaceCut>
The grid cut along every section; a section it does not meet has no entry.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Grid
impl RefUnwindSafe for Grid
impl Send for Grid
impl Sync for Grid
impl Unpin for Grid
impl UnsafeUnpin for Grid
impl UnwindSafe for Grid
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