Skip to main content

GeometryTableRegistry

Struct GeometryTableRegistry 

Source
pub struct GeometryTableRegistry { /* private fields */ }
Expand description

Root registry holding the current concrete point, line, face, triangle, and tetrahedron tables.

This type is intentionally small and explicit so it can serve as the top-level integration object for applications building a geometry graph on top of the trait system.

Implementations§

Source§

impl GeometryTableRegistry

Source

pub fn new() -> Self

Creates an empty registry with all currently supported core tables initialized.

The returned registry is ready to hand out shared table handles to concrete primitives.

Trait Implementations§

Source§

impl Clone for GeometryTableRegistry

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for GeometryTableRegistry

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for GeometryTableRegistry

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'a> IsGeometryTableBase<'a> for GeometryTableRegistry

Source§

type Point = CoordinateVector3D

Point primitive stored in the point table.
Source§

type Normal = UnitVector3D

Unit normal type used by polygonal faces and triangles.
Source§

type Line = Line3D

Line primitive stored in the line table.
Source§

type Face = PolygonFace3D

Polygon face primitive stored in the face table.
Source§

type Triangle = Triangle3D

Triangle primitive stored in the triangle table.
Source§

type Tetrahedron = Tetrahedron3D

Tetrahedron primitive stored in the tetrahedron table.
Source§

type PointTable = Rc<RefCell<HashGeometryTable<PointId, CoordinateVector3D>>>

Concrete point table type.
Source§

type LineTable = Rc<RefCell<HashGeometryTable<LineId, Line3D>>>

Concrete line table type.
Source§

type FaceTable = Rc<RefCell<HashGeometryTable<FaceId, PolygonFace3D>>>

Concrete face table type.
Source§

type TriangleTable = Rc<RefCell<HashGeometryTable<TriangleId, Triangle3D>>>

Concrete triangle table type.
Source§

type TetrahedronTable = Rc<RefCell<HashGeometryTable<TetrahedronId, Tetrahedron3D>>>

Concrete tetrahedron table type.
Source§

fn point_table(&self) -> &Self::PointTable

Returns an immutable reference to the point table.
Source§

fn point_table_mut(&mut self) -> &mut Self::PointTable

Returns a mutable reference to the point table.
Source§

fn line_table(&self) -> &Self::LineTable

Returns an immutable reference to the line table.
Source§

fn line_table_mut(&mut self) -> &mut Self::LineTable

Returns a mutable reference to the line table.
Source§

fn face_table(&self) -> &Self::FaceTable

Returns an immutable reference to the face table.
Source§

fn face_table_mut(&mut self) -> &mut Self::FaceTable

Returns a mutable reference to the face table.
Source§

fn triangle_table(&self) -> &Self::TriangleTable

Returns an immutable reference to the triangle table.
Source§

fn triangle_table_mut(&mut self) -> &mut Self::TriangleTable

Returns a mutable reference to the triangle table.
Source§

fn tetrahedron_table(&self) -> &Self::TetrahedronTable

Returns an immutable reference to the tetrahedron table.
Source§

fn tetrahedron_table_mut(&mut self) -> &mut Self::TetrahedronTable

Returns a mutable reference to the tetrahedron table.

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> MaybeSerialize for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.