pub struct ProcessedOwned { /* private fields */ }Expand description
A processed mesh independent of its parsed source. Each buffer retains its charge.
Implementations§
Source§impl ProcessedOwned
impl ProcessedOwned
Sourcepub fn vertex_count(&self) -> u64
pub fn vertex_count(&self) -> u64
m_VertexCount.
Sourcepub fn use_16bit_indices(&self) -> bool
pub fn use_16bit_indices(&self) -> bool
m_Use16BitIndices.
Sourcepub fn index_buffer(&self) -> Option<&IndexBuffer>
pub fn index_buffer(&self) -> Option<&IndexBuffer>
m_IndexBuffer: None where the source had none.
Sourcepub fn vertices(&self) -> Option<&VertexArray>
pub fn vertices(&self) -> Option<&VertexArray>
m_Vertices.
Sourcepub fn normals(&self) -> Option<&VertexArray>
pub fn normals(&self) -> Option<&VertexArray>
m_Normals.
Sourcepub fn tangents(&self) -> Option<&VertexArray>
pub fn tangents(&self) -> Option<&VertexArray>
m_Tangents.
Sourcepub fn colors(&self) -> Option<&VertexArray>
pub fn colors(&self) -> Option<&VertexArray>
m_Colors.
Sourcepub fn uv(&self, i: usize) -> Option<&VertexArray>
pub fn uv(&self, i: usize) -> Option<&VertexArray>
m_UV0 to m_UV7: uv(i), None past 7.
Sourcepub fn bone_weights(&self) -> Option<&VertexArray>
pub fn bone_weights(&self) -> Option<&VertexArray>
m_BoneWeights.
Sourcepub fn bone_indices(&self) -> Option<&VertexArray>
pub fn bone_indices(&self) -> Option<&VertexArray>
m_BoneIndices.
Sourcepub fn bind_pose(&self) -> Option<&VertexArray>
pub fn bind_pose(&self) -> Option<&VertexArray>
m_BindPose, which a compressed mesh below 5 sets: each matrix’s
16 floats flat, row by row, so a tuple of 16 (UnityPy’s
reshape(shape=(4, 4)) gives each as four rows of 4, the last
matrix’s rows cut short, then empty, where the count is no multiple
of 16).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ProcessedOwned
impl !UnwindSafe for ProcessedOwned
impl Forget for ProcessedOwned
impl Freeze for ProcessedOwned
impl Move for ProcessedOwned
impl Send for ProcessedOwned
impl Sync for ProcessedOwned
impl Unpin for ProcessedOwned
impl UnsafeUnpin for ProcessedOwned
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