[][src]Struct rgmsh::GeoModel

pub struct GeoModel<'gmsh> {
    pub name: &'static str,
    pub c_name: CString,
    // some fields omitted
}

An instance of the built-in geometry kernel.

Fields

name: &'static str

The model name.

c_name: CString

The model name used to talk to C.

Methods

impl<'gmsh> GeoModel<'gmsh>[src]

#[must_use] pub fn add_point(&mut self, x: f64, y: f64, z: f64) -> GmshResult<PointTag>[src]

Add a point to the model by specifying its coordinates.

#[must_use] pub fn add_point_with_lc(
    &mut self,
    x: f64,
    y: f64,
    z: f64,
    lc: f64
) -> GmshResult<PointTag>
[src]

Add a point to the model and specify a target mesh size lc there.

pub fn remove_point(&mut self, p: PointTag) -> GmshResult<()>[src]

Delete a point from the Gmsh model.

#[must_use] pub fn add_line(&mut self, p1: PointTag, p2: PointTag) -> GmshResult<CurveTag>[src]

Add a straight line between two points.

#[must_use] pub fn add_curve_loop(&mut self, curves: &[CurveTag]) -> GmshResult<WireTag>[src]

Add a curve loop from a closed set of curves.

#[must_use] pub fn add_plane_surface(&mut self, boundary: WireTag) -> GmshResult<SurfaceTag>[src]

Add a surface from a WireTag of a closed curve set.

pub fn curve_or_surface_op<T: Into<CurveOrSurface>>(&mut self, gen_entity: T)[src]

A certain operation that only works for curves and surfaces.

#[must_use] pub fn add_plane_surface_with_holes(
    &mut self,
    boundary: WireTag,
    holes: &[WireTag]
) -> GmshResult<SurfaceTag>
[src]

Add a surface with holes.

impl<'gmsh> GeoModel<'gmsh>[src]

#[must_use] pub fn create(_: &'gmsh Gmsh, name: &'static str) -> GmshResult<Self>[src]

Create a new Gmsh model.

pub fn remove(self) -> GmshResult<()>[src]

Remove model from Gmsh.

pub fn set_current(&self) -> GmshResult<()>[src]

Set model to current model.

pub fn synchronize(&mut self) -> GmshResult<()>[src]

Synchronize the underlying CAD representation.

pub fn generate_mesh(&mut self, dim: i32) -> GmshResult<()>[src]

Mesh the model.

Auto Trait Implementations

impl<'gmsh> Send for GeoModel<'gmsh>

impl<'gmsh> Sync for GeoModel<'gmsh>

impl<'gmsh> Unpin for GeoModel<'gmsh>

impl<'gmsh> UnwindSafe for GeoModel<'gmsh>

impl<'gmsh> RefUnwindSafe for GeoModel<'gmsh>

Blanket Implementations

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

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

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.

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]