Project OpenGeode
class VertexSetBuilder
Interface class to represent the builder of a VertexSet
Inherits from IdentifierBuilder
Inherits from IdentifierBuilder
Functions
VertexSetBuilder
public void VertexSetBuilder(const VertexSetBuilder & )
public void VertexSetBuilder(const VertexSetBuilder & )
operator=
public VertexSetBuilder & operator=(const VertexSetBuilder & )
public VertexSetBuilder & operator=(const VertexSetBuilder & )
VertexSetBuilder
public void VertexSetBuilder(VertexSetBuilder && )
public void VertexSetBuilder(VertexSetBuilder && )
operator=
public VertexSetBuilder & operator=(VertexSetBuilder && )
public VertexSetBuilder & operator=(VertexSetBuilder && )
~VertexSetBuilder
public void ~VertexSetBuilder()
public void ~VertexSetBuilder()
create
public unique_ptr create(VertexSet & mesh)
public unique_ptr create(VertexSet & mesh)
Create the builder associated with a VertexSet.
mesh [in] The VertexSet to build/modify
create_vertex
public index_t create_vertex()
public index_t create_vertex()
Create a new vertex.
return the index of the created vertex
create_vertices
public index_t create_vertices(index_t nb)
public index_t create_vertices(index_t nb)
Create a set of vertices.
nb [in] Number of vertices to create.
return the index of the first created vertex
delete_vertices
public vector delete_vertices(const std::vector<bool> & to_delete)
public vector delete_vertices(const std::vector<bool> & to_delete)
Delete a set of vertices.
to_delete [in] Vector of size vertex_set_.nb_vertices(). If to_delete[i] is true the vertex of index i is deleted, else it is kept.
return the mapping between old vertex indices to new ones. Deleted vertices new index is NO_ID
permute_vertices
public vector permute_vertices(Span permutation)
public vector permute_vertices(Span permutation)
Permute vertices to match the given order.
permutation [in] Vector of size vertex_set_.nb_vertices(). Each value corresponds to the destination position.
return the mapping between old vertex indices to new ones.
copy
public void copy(const VertexSet & vertex_set, VertexSetKey key)
public void copy(const VertexSet & vertex_set, VertexSetKey key)
VertexSetBuilder
protected void VertexSetBuilder(VertexSet & vertex_set)
protected void VertexSetBuilder(VertexSet & vertex_set)
copy
protected void copy(const VertexSet & vertex_set)
protected void copy(const VertexSet & vertex_set)
do_create_vertex
protected void do_create_vertex()
protected void do_create_vertex()