Skip to content

Project OpenGeode

class VertexSetBuilder

Interface class to represent the builder of a VertexSet

cpp
Inherits from IdentifierBuilder
Inherits from IdentifierBuilder

Functions

VertexSetBuilder

cpp
public void VertexSetBuilder(const VertexSetBuilder & )
public void VertexSetBuilder(const VertexSetBuilder & )

operator=

cpp
public VertexSetBuilder & operator=(const VertexSetBuilder & )
public VertexSetBuilder & operator=(const VertexSetBuilder & )

VertexSetBuilder

cpp
public void VertexSetBuilder(VertexSetBuilder && )
public void VertexSetBuilder(VertexSetBuilder && )

operator=

cpp
public VertexSetBuilder & operator=(VertexSetBuilder && )
public VertexSetBuilder & operator=(VertexSetBuilder && )

~VertexSetBuilder

cpp
public void ~VertexSetBuilder()
public void ~VertexSetBuilder()

create

cpp
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

cpp
public index_t create_vertex()
public index_t create_vertex()

Create a new vertex.

return the index of the created vertex

create_vertices

cpp
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

cpp
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

cpp
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

cpp
public void copy(const VertexSet & vertex_set, VertexSetKey key)
public void copy(const VertexSet & vertex_set, VertexSetKey key)

VertexSetBuilder

cpp
protected void VertexSetBuilder(VertexSet & vertex_set)
protected void VertexSetBuilder(VertexSet & vertex_set)

copy

cpp
protected void copy(const VertexSet & vertex_set)
protected void copy(const VertexSet & vertex_set)

do_create_vertex

cpp
protected void do_create_vertex()
protected void do_create_vertex()

Geode-solutions' documentation website