Struct rin::blender::scene_data::Mesh [−][src]
pub struct Mesh {}Show fields
pub name: String, pub key: Option<String>, pub address: u64, pub mpoly: Vec<MPoly, Global>, pub mloop: Vec<MLoop, Global>, pub mloopuv: Vec<MLoopUV, Global>, pub mloopcol: Vec<AlphaColor<u8, Rgb<u8, Srgb>>, Global>, pub mface: Vec<MFace, Global>, pub mvert: Vec<MVert, Global>, pub medge: Vec<MEdge, Global>, pub dvert: Vec<MDeformVert, Global>, pub mcol: Vec<AlphaColor<u8, Rgb<u8, Srgb>>, Global>, pub dweights: Vec<MDeformWeight, Global>, pub loc: [f32; 3], pub size: [f32; 3], pub rot: Option<[f32; 3]>, pub drawflag: Option<i32>, pub texflag: i16, pub flag: Flag, pub smoothresh: f32, pub cd_flag: u8, pub subdiv: u8, pub subdivr: u8, pub subsurftype: u8,
Fields
name: String
key: Option<String>
address: u64
mpoly: Vec<MPoly, Global>
mloop: Vec<MLoop, Global>
mloopuv: Vec<MLoopUV, Global>
mloopcol: Vec<AlphaColor<u8, Rgb<u8, Srgb>>, Global>
mface: Vec<MFace, Global>
mvert: Vec<MVert, Global>
medge: Vec<MEdge, Global>
dvert: Vec<MDeformVert, Global>
mcol: Vec<AlphaColor<u8, Rgb<u8, Srgb>>, Global>
dweights: Vec<MDeformWeight, Global>
loc: [f32; 3]
size: [f32; 3]
rot: Option<[f32; 3]>
drawflag: Option<i32>
texflag: i16
flag: Flag
smoothresh: f32
cd_flag: u8
subdiv: u8
subdivr: u8
subsurftype: u8
Implementations
impl Mesh
[src]
impl Mesh
[src]pub fn parse(blend_mesh: &Object<'_>, version: u32) -> Result<Mesh, Error>
[src]
pub fn recalculate_normals(&mut self)
[src]
pub fn dimensions(
&self
) -> Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>
[src]
&self
) -> Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>
pub fn dvert(&self, idx: usize) -> &[MDeformWeight]ⓘ
[src]
pub fn triangulate(&mut self)
[src]
pub fn triangulate_no_edges(&mut self)
[src]
pub fn subdivide_simple(&mut self, subdivide_uvs: bool)
[src]
Trait Implementations
impl<'de> Deserialize<'de> for Mesh
[src]
impl<'de> Deserialize<'de> for Mesh
[src]pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Mesh, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<Mesh, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Serialize for Mesh
[src]
impl Serialize for Mesh
[src]pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Auto Trait Implementations
impl RefUnwindSafe for Mesh
impl Send for Mesh
impl Sync for Mesh
impl Unpin for Mesh
impl UnwindSafe for Mesh
Blanket Implementations
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]pub fn erased_serialize(
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
[src]
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,