pub enum RoomGeometry {
Rectangular(RectangularRoom),
LShaped(LShapedRoom),
}Expand description
Room geometry types
Variants§
Rectangular(RectangularRoom)
LShaped(LShapedRoom)
Implementations§
Source§impl RoomGeometry
impl RoomGeometry
pub fn generate_mesh(&self, elements_per_meter: usize) -> RoomMesh
Sourcepub fn generate_adaptive_mesh(
&self,
base_elements_per_meter: usize,
frequency: f64,
sources: &[Source],
speed_of_sound: f64,
) -> RoomMesh
pub fn generate_adaptive_mesh( &self, base_elements_per_meter: usize, frequency: f64, sources: &[Source], speed_of_sound: f64, ) -> RoomMesh
Generate frequency-adaptive mesh with selective refinement
Refines mesh based on:
- Wavelength criterion (λ/6 to λ/10 per element)
- Distance to sources (finer near sources)
- Geometric features (corners, edges get extra refinement)
pub fn get_edges(&self) -> Vec<(Point3D, Point3D)>
Trait Implementations§
Source§impl Clone for RoomGeometry
impl Clone for RoomGeometry
Source§fn clone(&self) -> RoomGeometry
fn clone(&self) -> RoomGeometry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RoomGeometry
impl Debug for RoomGeometry
Source§impl<'de> Deserialize<'de> for RoomGeometry
impl<'de> Deserialize<'de> for RoomGeometry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RoomGeometry
impl RefUnwindSafe for RoomGeometry
impl Send for RoomGeometry
impl Sync for RoomGeometry
impl Unpin for RoomGeometry
impl UnwindSafe for RoomGeometry
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