#include "imesh_operations.h"
#include <vcl_iostream.h>
#include <vcl_map.h>
#include <vcl_cassert.h>
#include <vgl/vgl_point_2d.h>
#include <vgl/vgl_point_3d.h>
#include <vgl/vgl_vector_3d.h>
Go to the source code of this file.
Functions | |
vcl_auto_ptr < imesh_regular_face_array< 3 > > | imesh_triangulate (const imesh_face_array_base &faces) |
Subdivide mesh faces into triangle. | |
vcl_auto_ptr < imesh_regular_face_array< 3 > > | imesh_triangulate (const imesh_regular_face_array< 4 > &faces) |
Subdivide quadrilaterals into triangle. | |
void | imesh_triangulate (imesh_mesh &mesh) |
Triangulate the faces of the mesh (in place). | |
void | imesh_quad_subdivide (imesh_mesh &mesh) |
Subdivide faces into quadrilaterals (in place). | |
void | imesh_quad_subdivide (imesh_mesh &mesh, const vcl_set< unsigned int > &sel_faces) |
Subdivide faces into quadrilaterals (in place). | |
imesh_mesh | imesh_submesh_from_faces (const imesh_mesh &mesh, const vcl_set< unsigned int > &sel_faces) |
Extract a sub-mesh containing only the faces listed in sel_faces. | |
void | imesh_flip_faces (imesh_mesh &mesh) |
Flip the orientation of all mesh faces. | |
void | imesh_flip_faces (imesh_mesh &mesh, const vcl_set< unsigned int > &sel_faces) |
Flip the orientation of the selected faces. | |
imesh_mesh | dual_mesh (const imesh_mesh &mesh) |
Compute the dual mesh using face centroids for vertices. | |
bool | contains_point (const imesh_mesh &mesh, vgl_point_3d< double > p) |
Contains a 3d point in convex polygon. |
Definition in file imesh_operations.cxx.
bool contains_point | ( | const imesh_mesh & | mesh, |
vgl_point_3d< double > | p | ||
) |
Contains a 3d point in convex polygon.
Definition at line 472 of file imesh_operations.cxx.
imesh_mesh dual_mesh | ( | const imesh_mesh & | mesh | ) |
Compute the dual mesh using face centroids for vertices.
Definition at line 428 of file imesh_operations.cxx.
void imesh_flip_faces | ( | imesh_mesh & | mesh | ) |
Flip the orientation of all mesh faces.
Definition at line 407 of file imesh_operations.cxx.
void imesh_flip_faces | ( | imesh_mesh & | mesh, |
const vcl_set< unsigned int > & | sel_faces | ||
) |
Flip the orientation of the selected faces.
Definition at line 417 of file imesh_operations.cxx.
void imesh_quad_subdivide | ( | imesh_mesh & | mesh | ) |
Subdivide faces into quadrilaterals (in place).
Add a vertex at the center of each edge And a vertex at the center of each face
Definition at line 128 of file imesh_operations.cxx.
void imesh_quad_subdivide | ( | imesh_mesh & | mesh, |
const vcl_set< unsigned int > & | sel_faces | ||
) |
Subdivide faces into quadrilaterals (in place).
Add a vertex at the center of each edge And a vertex at the center of each face Only subdivide the selected faces
Definition at line 224 of file imesh_operations.cxx.
imesh_mesh imesh_submesh_from_faces | ( | const imesh_mesh & | mesh, |
const vcl_set< unsigned int > & | sel_faces | ||
) |
Extract a sub-mesh containing only the faces listed in sel_faces.
Definition at line 346 of file imesh_operations.cxx.
vcl_auto_ptr<imesh_regular_face_array<3> > imesh_triangulate | ( | const imesh_face_array_base & | faces | ) |
Subdivide mesh faces into triangle.
Definition at line 15 of file imesh_operations.cxx.
vcl_auto_ptr<imesh_regular_face_array<3> > imesh_triangulate | ( | const imesh_regular_face_array< 4 > & | faces | ) |
Subdivide quadrilaterals into triangle.
Definition at line 34 of file imesh_operations.cxx.
void imesh_triangulate | ( | imesh_mesh & | mesh | ) |
Triangulate the faces of the mesh (in place).
Definition at line 54 of file imesh_operations.cxx.