pub struct GeometryRegistry {
pub entries: Vec<GeometryEntry>,
/* private fields */
}Expand description
Growable array of geometry entries with content-hash dedup. (b3GeometryRegistry)
Fields§
§entries: Vec<GeometryEntry>Implementations§
Source§impl GeometryRegistry
impl GeometryRegistry
pub fn new() -> Self
Sourcepub fn append(
&mut self,
kind: GeometryKind,
content_hash: u64,
bytes: Vec<u8>,
) -> u32
pub fn append( &mut self, kind: GeometryKind, content_hash: u64, bytes: Vec<u8>, ) -> u32
Append without dedup (id == slot index). (b3AppendGeometry)
Sourcepub fn intern(
&mut self,
kind: GeometryKind,
content_hash: u64,
bytes: Vec<u8>,
) -> u32
pub fn intern( &mut self, kind: GeometryKind, content_hash: u64, bytes: Vec<u8>, ) -> u32
(b3InternGeometry)
Sourcepub fn intern_hull(&mut self, hull: &HullData) -> u32
pub fn intern_hull(&mut self, hull: &HullData) -> u32
(b3RecInternHull)
Sourcepub fn intern_mesh(&mut self, mesh: &MeshData) -> u32
pub fn intern_mesh(&mut self, mesh: &MeshData) -> u32
(b3RecInternMesh)
Sourcepub fn intern_height_field(&mut self, hf: &HeightFieldData) -> u32
pub fn intern_height_field(&mut self, hf: &HeightFieldData) -> u32
(b3RecInternHeightField)
Sourcepub fn intern_compound(&mut self, compound: &CompoundData) -> u32
pub fn intern_compound(&mut self, compound: &CompoundData) -> u32
(b3RecInternCompound)
Sourcepub fn to_slots(&self) -> Vec<RegistrySlot>
pub fn to_slots(&self) -> Vec<RegistrySlot>
Build reader slots from registry entries (id == index).
Trait Implementations§
Source§impl Debug for GeometryRegistry
impl Debug for GeometryRegistry
Source§impl Default for GeometryRegistry
impl Default for GeometryRegistry
Source§fn default() -> GeometryRegistry
fn default() -> GeometryRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GeometryRegistry
impl RefUnwindSafe for GeometryRegistry
impl Send for GeometryRegistry
impl Sync for GeometryRegistry
impl Unpin for GeometryRegistry
impl UnsafeUnpin for GeometryRegistry
impl UnwindSafe for GeometryRegistry
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