TransformedMesh::faces
This commit is contained in:
parent
0a44c1630f
commit
e875826250
@ -484,6 +484,9 @@ impl TransformedMesh<'_>{
|
|||||||
pub fn verts<'a>(&'a self)->impl Iterator<Item=vec3::Vector3<Fixed<2,64>>>+'a{
|
pub fn verts<'a>(&'a self)->impl Iterator<Item=vec3::Vector3<Fixed<2,64>>>+'a{
|
||||||
self.view.data.verts.iter().map(|&Vert(pos)|self.transform.vertex.transform_point3(pos))
|
self.view.data.verts.iter().map(|&Vert(pos)|self.transform.vertex.transform_point3(pos))
|
||||||
}
|
}
|
||||||
|
pub fn faces(&self)->impl Iterator<Item=SubmeshFaceId>{
|
||||||
|
(0..self.view.topology.faces.len() as u32).map(SubmeshFaceId::new)
|
||||||
|
}
|
||||||
fn farthest_vert(&self,dir:Planar64Vec3)->SubmeshVertId{
|
fn farthest_vert(&self,dir:Planar64Vec3)->SubmeshVertId{
|
||||||
//this happens to be well-defined. there are no virtual virtices
|
//this happens to be well-defined. there are no virtual virtices
|
||||||
SubmeshVertId::new(
|
SubmeshVertId::new(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user