cee::ug::DataSurfaceGroup

class DataSurfaceGroup : public RefCountedObject

A DataSurfaceGroup represents a CAD surface as a collection of element faces.

Each surface group has a CAD surface ID that uniquely identifies the original CAD surface, a human-readable name, and a collection of DataSurfaceGroupItem entries that identify the element faces belonging to this surface.

Surface groups are read-only when loaded from a VTFx file and are available through the DataSource::surfaceGroup() methods.

Public Functions

DataSurfaceGroup(int cadSurfaceId)

Constructs a surface group with the given CAD surface id.

int cadSurfaceId() const

Returns the CAD surface id.

Str name() const

Returns the name of the surface group.

void setName(const Str &name)

Sets the name of the surface group.

size_t itemCount() const

Returns the number of items in the surface group.

DataSurfaceGroupItem item(size_t index) const

Returns the item at the given index.

void addItem(const DataSurfaceGroupItem &item)

Adds an item to the surface group.

void removeAllItems()

Removes all items from the surface group.

std::vector<size_t> elementIndicesForPart(int geometryId, int partId) const

Returns all element indices for the given geometryId and partId.