| 6 | { |
| 7 | |
| 8 | PointCloud meshToPointCloud( const Mesh& mesh, bool saveNormals /*= true */, const VertBitSet* verts ) |
| 9 | { |
| 10 | PointCloud res; |
| 11 | res.points = mesh.points; |
| 12 | res.validPoints = mesh.topology.getVertIds( verts ); |
| 13 | if(saveNormals) |
| 14 | res.normals = computePerVertNormals( mesh ); |
| 15 | return res; |
| 16 | } |
| 17 | |
| 18 | } |