Struct Gmsh

Source
pub struct Gmsh {}
Expand description

Gmsh context object

Implementations§

Source§

impl Gmsh

Source

pub fn initialize_gui(&self) -> GmshResult<Gui<'_>>

Create the GUI. If successful, open the GUI for an instant before resuming execution.

Source

pub fn run_gui(&self) -> GmshResult<Gui<'_>>

Run the GUI and block the calling thread until the GUI window is closed.

Source§

impl Gmsh

Source

pub fn initialize() -> GmshResult<Self>

Create the main Gmsh object. All API functions are provided through this object.

Source

pub fn create_native_model( &self, name: &'static str, ) -> GmshResult<GeoModel<'_>>

Make a new model using the built-in Gmsh geometry kernel

Source

pub fn create_occ_model(&self, name: &'static str) -> GmshResult<OccModel<'_>>

Make a new model using the OpenCASCADE geometry kernel

Source

pub fn get_number_option(&self, name: &str) -> GmshResult<f64>

Get a numeric option.

Source

pub fn set_number_option(&mut self, name: &str, value: f64) -> GmshResult<()>

Set a numeric option.

Source

pub fn get_string_option(&self, name: &str) -> GmshResult<String>

Get a string option.

Source

pub fn set_string_option(&mut self, name: &str, value: &str) -> GmshResult<()>

Set a string option.

Trait Implementations§

Source§

impl Drop for Gmsh

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.