![]() |
Polyhedral-net Splines
|
Functions for operating on half-edge data structures. More...
Functions | |
| VertexHandle | HalfedgeOperation::get_vert (const MeshType &a_Mesh, HalfedgeHandle &a_HalfedgeHandle, const std::vector< int > a_Commands) |
| Halfedge operation to get one vert. Will return the last vertex handle if multiple get commands are given to get. | |
| VertexHandle | HalfedgeOperation::get_vert_fixed_halfedge (const MeshType &a_Mesh, HalfedgeHandle a_HalfedgeHandle, const std::vector< int > a_Commands) |
| Halfedge operation to get one vert. | |
| std::vector< VertexHandle > | HalfedgeOperation::get_verts (const MeshType &a_Mesh, HalfedgeHandle &a_HalfedgeHandle, const std::vector< int > a_Commands) |
| Halfedge operation to get multiple vertices. | |
| std::vector< VertexHandle > | HalfedgeOperation::get_verts_fixed_halfedge (const MeshType &a_Mesh, HalfedgeHandle a_HalfedgeHandle, const std::vector< int > a_Commands) |
| Halfedge operation to get multiple vertices. | |
| FaceHandle | HalfedgeOperation::get_face (const MeshType &a_Mesh, HalfedgeHandle &a_HalfedgeHandle, const std::vector< int > a_Commands) |
| Halfedge operation to get one face. | |
| void | HalfedgeOperation::init_verts (const MeshType &a_Mesh, HalfedgeHandle a_HalfedgeHandle, std::vector< VertexHandle > &a_TargetVertexHandles, const std::vector< std::vector< int > > &a_OrderOfVertIdx, const std::vector< int > &a_CommandForOneSet) |
| Fill the TargetVertexHandles vector by given the index ordering and commands. The same commands will run a_OrderOfVertIdx.size() times. | |
| void | HalfedgeOperation::init_verts (const MeshType &a_Mesh, HalfedgeHandle &a_HalfedgeHandle, std::vector< VertexHandle > &a_TargetVertexHandles, const std::vector< int > &a_OrderOfVertIdx, const std::vector< int > &a_Commands) |
| Fill the TargetVertexHandles vector by given the index ordering and commands. | |
| void | HalfedgeOperation::init_verts_fixed_halfedge (const MeshType &a_Mesh, HalfedgeHandle a_HalfedgeHandle, std::vector< VertexHandle > &a_TargetVertexHandles, const std::vector< int > &a_OrderOfVertIdx, const std::vector< int > &a_Commands) |
| Fill the TargetVertexHandles vector by given the index ordering and commands. | |
| std::vector< int > | HalfedgeOperation::duplicate_commands (int a_Times, const std::vector< int > &a_Commands) |
| Duplicate commands by specific times. | |
Functions for operating on half-edge data structures.
| std::vector< int > HalfedgeOperation::duplicate_commands | ( | int | a_Times, |
| const std::vector< int > & | a_Commands ) |
Duplicate commands by specific times.
| a_Times | The number of times to duplicate the commands |
| a_Commands | The commands to be duplicated |
| FaceHandle HalfedgeOperation::get_face | ( | const MeshType & | a_Mesh, |
| HalfedgeHandle & | a_HalfedgeHandle, | ||
| const std::vector< int > | a_Commands ) |
Halfedge operation to get one face.
| a_Mesh | The mesh containing the halfedge. |
| a_HalfedgeHandle | The halfedge handle to start from. |
| a_Commands | A vector of commands to execute. Commands: 1=next halfedge, 2=previous halfedge, 3=opposite halfedge, 5=get from face. |
| VertexHandle HalfedgeOperation::get_vert | ( | const MeshType & | a_Mesh, |
| HalfedgeHandle & | a_HalfedgeHandle, | ||
| const std::vector< int > | a_Commands ) |
Halfedge operation to get one vert. Will return the last vertex handle if multiple get commands are given to get.
| a_Mesh | The mesh containing the halfedge. |
| a_HalfedgeHandle | The halfedge handle to start from. This will be modified by the function. |
| a_Commands | A vector of commands to execute. Commands: 1=next halfedge, 2=previous halfedge, 3=opposite halfedge, 4=get from vertex |
| VertexHandle HalfedgeOperation::get_vert_fixed_halfedge | ( | const MeshType & | a_Mesh, |
| HalfedgeHandle | a_HalfedgeHandle, | ||
| const std::vector< int > | a_Commands ) |
Halfedge operation to get one vert.
| a_Mesh | The mesh containing the halfedge. |
| a_HalfedgeHandle | The halfedge handle to start from. This will be modified by the function. |
| a_Commands | A vector of commands to execute. Commands: 1=next halfedge, 2=previous halfedge, 3=opposite halfedge, 4=get from vertex |
| std::vector< VertexHandle > HalfedgeOperation::get_verts | ( | const MeshType & | a_Mesh, |
| HalfedgeHandle & | a_HalfedgeHandle, | ||
| const std::vector< int > | a_Commands ) |
Halfedge operation to get multiple vertices.
| a_Mesh | The mesh containing the halfedge. |
| a_HalfedgeHandle | The halfedge handle to start from. This will be modified by the function. |
| a_Commands | A vector of commands to execute. Commands: 1=next halfedge, 2=previous halfedge, 3=opposite halfedge, 4=get from vertex |
| std::vector< VertexHandle > HalfedgeOperation::get_verts_fixed_halfedge | ( | const MeshType & | a_Mesh, |
| HalfedgeHandle | a_HalfedgeHandle, | ||
| const std::vector< int > | a_Commands ) |
Halfedge operation to get multiple vertices.
| a_Mesh | The mesh containing the halfedge. |
| a_HalfedgeHandle | The halfedge handle to start from. This will be modified by the function. |
| a_Commands | A vector of commands to execute. Commands: 1=next halfedge, 2=previous halfedge, 3=opposite halfedge, 4=get from vertex |
| void HalfedgeOperation::init_verts | ( | const MeshType & | a_Mesh, |
| HalfedgeHandle & | a_HalfedgeHandle, | ||
| std::vector< VertexHandle > & | a_TargetVertexHandles, | ||
| const std::vector< int > & | a_OrderOfVertIdx, | ||
| const std::vector< int > & | a_Commands ) |
Fill the TargetVertexHandles vector by given the index ordering and commands.
| a_Mesh | The mesh containing the halfedge. |
| a_HalfedgeHandle | The halfedge handle to start from. |
| a_TargetVertexHandles | The target vector to be filled. |
| a_OrderOfVertIdx | A vector of indices to indicate the target index in a_TargetVertexHandles. |
| a_Commands | A vector of commands to execute. Commands: 1=next halfedge, 2=previous halfedge, 3=opposite halfedge, 4=get from vertex |
| void HalfedgeOperation::init_verts | ( | const MeshType & | a_Mesh, |
| HalfedgeHandle | a_HalfedgeHandle, | ||
| std::vector< VertexHandle > & | a_TargetVertexHandles, | ||
| const std::vector< std::vector< int > > & | a_OrderOfVertIdx, | ||
| const std::vector< int > & | a_CommandForOneSet ) |
Fill the TargetVertexHandles vector by given the index ordering and commands. The same commands will run a_OrderOfVertIdx.size() times.
| a_Mesh | The mesh containing the halfedge. |
| a_HalfedgeHandle | The halfedge handle to start from. |
| a_TargetVertexHandles | The target vector to be filled. |
| a_OrderOfVertIdx | A vector of vector of indices to indicate the target index in a_TargetVertexHandles. Each inner vector indicates one set of indices for one run of commands. |
| a_CommandForOneSet | A vector of commands to execute for one set of indices. Comands: 1=next halfedge, 2=previous halfedge, 3=opposite halfedge, 4=get from vertex |
| void HalfedgeOperation::init_verts_fixed_halfedge | ( | const MeshType & | a_Mesh, |
| HalfedgeHandle | a_HalfedgeHandle, | ||
| std::vector< VertexHandle > & | a_TargetVertexHandles, | ||
| const std::vector< int > & | a_OrderOfVertIdx, | ||
| const std::vector< int > & | a_Commands ) |
Fill the TargetVertexHandles vector by given the index ordering and commands.
| a_Mesh | The mesh containing the halfedge. |
| a_HalfedgeHandle | The halfedge handle to start from. |
| a_TargetVertexHandles | The target vector to be filled. |
| a_OrderOfVertIdx | A vector of indices to indicate the target index in a_TargetVertexHandles. |
| a_Commands | A vector of commands to execute. Commands: 1=next halfedge, 2=previous halfedge, 3=opposite halfedge, 4=get from vertex |