pub struct ModelBrush {
pub bound: FloatBoundingBox,
pub contents: ShortBsp29LeafContents,
pub planes: BspVariableArray<ModelBrushPlane, u16>,
}Fields§
§bound: FloatBoundingBox§contents: ShortBsp29LeafContents§planes: BspVariableArray<ModelBrushPlane, u16>Non-axial faces only. It’s on you to add axial planes via the bounding box.
Trait Implementations§
Source§impl BspValue for ModelBrush
impl BspValue for ModelBrush
Source§fn bsp_parse(reader: &mut BspByteReader<'_>) -> BspResult<Self>
fn bsp_parse(reader: &mut BspByteReader<'_>) -> BspResult<Self>
Parse this value, advancing the byte reader.
Source§fn bsp_struct_size(ctx: &BspParseContext) -> usize
fn bsp_struct_size(ctx: &BspParseContext) -> usize
How big this value is in the BSP file in bytes. If it is a variable size, return
unimplemented!(), as calling this on variable-sized values would be a bug.Source§impl Clone for ModelBrush
impl Clone for ModelBrush
Source§fn clone(&self) -> ModelBrush
fn clone(&self) -> ModelBrush
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 moreAuto Trait Implementations§
impl Freeze for ModelBrush
impl RefUnwindSafe for ModelBrush
impl Send for ModelBrush
impl Sync for ModelBrush
impl Unpin for ModelBrush
impl UnwindSafe for ModelBrush
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