pub enum Domain {
Rectangle {
x_min: f64,
y_min: f64,
x_max: f64,
y_max: f64,
},
Circle {
center_x: f64,
center_y: f64,
radius: f64,
},
Ellipse {
center_x: f64,
center_y: f64,
a: f64,
b: f64,
rotation: f64,
},
LShape {
width: f64,
height: f64,
notch_width: f64,
notch_height: f64,
},
Polygon {
vertices: Vec<Point>,
},
Annulus {
center_x: f64,
center_y: f64,
inner_radius: f64,
outer_radius: f64,
},
}Expand description
Geometric domain types for automatic mesh generation
Variants§
Rectangle
Rectangle: (x_min, y_min, x_max, y_max)
Circle
Circle: (center_x, center_y, radius)
Ellipse
Ellipse: (center_x, center_y, a, b, rotation_angle)
LShape
L-shaped domain
Polygon
Custom polygon defined by vertices
Annulus
Annulus (ring): (center_x, center_y, inner_radius, outer_radius)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Domain
impl RefUnwindSafe for Domain
impl Send for Domain
impl Sync for Domain
impl Unpin for Domain
impl UnwindSafe for Domain
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more