pub struct Gmsh {}Expand description
Gmsh context object
Implementations§
Source§impl Gmsh
impl Gmsh
Sourcepub fn initialize_gui(&self) -> GmshResult<Gui<'_>>
pub fn initialize_gui(&self) -> GmshResult<Gui<'_>>
Create the GUI. If successful, open the GUI for an instant before resuming execution.
Sourcepub fn run_gui(&self) -> GmshResult<Gui<'_>>
pub fn run_gui(&self) -> GmshResult<Gui<'_>>
Run the GUI and block the calling thread until the GUI window is closed.
Source§impl Gmsh
impl Gmsh
Sourcepub fn initialize() -> GmshResult<Self>
pub fn initialize() -> GmshResult<Self>
Create the main Gmsh object. All API functions are provided through this object.
Sourcepub fn create_native_model(
&self,
name: &'static str,
) -> GmshResult<GeoModel<'_>>
pub fn create_native_model( &self, name: &'static str, ) -> GmshResult<GeoModel<'_>>
Make a new model using the built-in Gmsh geometry kernel
Sourcepub fn create_occ_model(&self, name: &'static str) -> GmshResult<OccModel<'_>>
pub fn create_occ_model(&self, name: &'static str) -> GmshResult<OccModel<'_>>
Make a new model using the OpenCASCADE geometry kernel
Sourcepub fn get_number_option(&self, name: &str) -> GmshResult<f64>
pub fn get_number_option(&self, name: &str) -> GmshResult<f64>
Get a numeric option.
Sourcepub fn set_number_option(&mut self, name: &str, value: f64) -> GmshResult<()>
pub fn set_number_option(&mut self, name: &str, value: f64) -> GmshResult<()>
Set a numeric option.
Sourcepub fn get_string_option(&self, name: &str) -> GmshResult<String>
pub fn get_string_option(&self, name: &str) -> GmshResult<String>
Get a string option.
Sourcepub fn set_string_option(&mut self, name: &str, value: &str) -> GmshResult<()>
pub fn set_string_option(&mut self, name: &str, value: &str) -> GmshResult<()>
Set a string option.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Gmsh
impl RefUnwindSafe for Gmsh
impl Send for Gmsh
impl Sync for Gmsh
impl Unpin for Gmsh
impl UnwindSafe for Gmsh
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