[−][src]Struct rgmsh::GeoModel
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]
&mut self,
x: f64,
y: f64,
z: f64,
lc: f64
) -> GmshResult<PointTag>
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]
&mut self,
boundary: WireTag,
holes: &[WireTag]
) -> GmshResult<SurfaceTag>
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,