pub struct GeoModel<'a> {
pub name: &'static str,
pub c_name: CString,
/* private fields */
}Expand description
An instance of the built-in geometry kernel.
Fields§
§name: &'static strThe model name.
c_name: CStringThe model name used to talk to C.
Implementations§
§impl<'a> GeoModel<'a>
Autogenerated method implementations for the built-in geometry kernel
impl<'a> GeoModel<'a>
Autogenerated method implementations for the built-in geometry kernel
pub fn add_point(&mut self, x: f64, y: f64, z: f64) -> GmshResult<PointTag>
pub fn add_point(&mut self, x: f64, y: f64, z: f64) -> GmshResult<PointTag>
Add a point to the model by specifying its coordinates.
pub fn add_point_with_lc(
&mut self,
x: f64,
y: f64,
z: f64,
lc: f64,
) -> GmshResult<PointTag>
pub fn add_point_with_lc( &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<()>
pub fn remove_point(&mut self, p: PointTag) -> GmshResult<()>
Delete a point from the Gmsh model.
pub fn add_line(&mut self, p1: PointTag, p2: PointTag) -> GmshResult<CurveTag>
pub fn add_line(&mut self, p1: PointTag, p2: PointTag) -> GmshResult<CurveTag>
Add a straight line between two points.
pub fn add_curve_loop(&mut self, curves: &[CurveTag]) -> GmshResult<WireTag>
pub fn add_curve_loop(&mut self, curves: &[CurveTag]) -> GmshResult<WireTag>
Add a curve loop from a closed set of curves.
pub fn add_plane_surface(&mut self, boundary: WireTag) -> GmshResult<SurfaceTag>
pub fn add_plane_surface(&mut self, boundary: WireTag) -> GmshResult<SurfaceTag>
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)
pub fn curve_or_surface_op<T: Into<CurveOrSurface>>(&mut self, gen_entity: T)
A certain operation that only works for curves and surfaces.
pub fn add_plane_surface_with_holes(
&mut self,
boundary: WireTag,
holes: &[WireTag],
) -> GmshResult<SurfaceTag>
pub fn add_plane_surface_with_holes( &mut self, boundary: WireTag, holes: &[WireTag], ) -> GmshResult<SurfaceTag>
Add a surface with holes.
Source§impl<'a> GeoModel<'a>
impl<'a> GeoModel<'a>
Sourcepub fn create(_: &'a Gmsh, name: &'static str) -> GmshResult<Self>
pub fn create(_: &'a Gmsh, name: &'static str) -> GmshResult<Self>
Create a new Gmsh model.
Sourcepub fn remove(self) -> GmshResult<()>
pub fn remove(self) -> GmshResult<()>
Remove model from Gmsh.
Sourcepub fn set_current(&self) -> GmshResult<()>
pub fn set_current(&self) -> GmshResult<()>
Set model to current model.
Sourcepub fn synchronize(&mut self) -> GmshResult<()>
pub fn synchronize(&mut self) -> GmshResult<()>
Synchronize the underlying CAD representation.
Sourcepub fn generate_mesh(&mut self, dim: i32) -> GmshResult<()>
pub fn generate_mesh(&mut self, dim: i32) -> GmshResult<()>
Mesh the model.
Auto Trait Implementations§
impl<'a> Freeze for GeoModel<'a>
impl<'a> RefUnwindSafe for GeoModel<'a>
impl<'a> Send for GeoModel<'a>
impl<'a> Sync for GeoModel<'a>
impl<'a> Unpin for GeoModel<'a>
impl<'a> UnwindSafe for GeoModel<'a>
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