Antkeeper  0.0.1
Public Member Functions | Friends | List of all members
geom::brep_face_container Class Reference

B-rep face container. More...

#include <brep-face.hpp>

Inheritance diagram for geom::brep_face_container:
geom::brep_element_container< brep_face >

Public Member Functions

brep_faceemplace_back (const std::span< brep_vertex * > vertices)
 Appends a new face to the end of the container. More...
 
void erase (brep_face *face) override
 Erases a face and all of its loops. More...
 
void clear () noexcept
 Erases all faces and their loops. More...
 
void reverse (brep_face *face)
 Reverses the direction of a face's bounding loops. More...
 
- Public Member Functions inherited from geom::brep_element_container< brep_face >
constexpr element_typeoperator[] (std::size_t i) const
 Returns a pointer to the element at the specified index. More...
 
constexpr element_typefront () const noexcept
 Returns the first element. More...
 
constexpr element_typeback () const noexcept
 Returns the last element. More...
 
constexpr const_iterator begin () const noexcept
 Returns an iterator to the first element. More...
 
constexpr const_iterator cbegin () const noexcept
 Returns an iterator to the first element. More...
 
constexpr const_iterator end () const noexcept
 Returns an iterator to the element following the last element. More...
 
constexpr const_iterator cend () const noexcept
 Returns an iterator to the element following the last element. More...
 
constexpr const_reverse_iterator rbegin () const noexcept
 Returns a reverse iterator to the first element of the reversed container. More...
 
constexpr const_reverse_iterator crbegin () const noexcept
 Returns a reverse iterator to the first element of the reversed container. More...
 
constexpr const_reverse_iterator rend () const noexcept
 Returns a reverse iterator to the element following the last element of the reversed container. More...
 
constexpr const_reverse_iterator crend () const noexcept
 Returns a reverse iterator to the element following the last element of the reversed container. More...
 
constexpr bool empty () const noexcept
 Returns true if the container is empty, false otherwise. More...
 
constexpr std::size_t size () const noexcept
 Returns the number of elements in the container. More...
 
const brep_attribute_mapattributes () const noexcept
 Returns the element attribute map. More...
 
brep_attribute_mapattributes () noexcept
 Returns the element attribute map. More...
 

Friends

class brep_mesh
 

Additional Inherited Members

- Public Types inherited from geom::brep_element_container< brep_face >
using element_type = brep_face
 
using const_reverse_iterator = std::reverse_iterator< const_iterator >
 
- Protected Member Functions inherited from geom::brep_element_container< brep_face >
 brep_element_container (brep_mesh *mesh) noexcept
 Constructs a B-rep element container. More...
 
virtual element_typeemplace_back ()
 Appends a new element to the end of the container. More...
 
- Protected Attributes inherited from geom::brep_element_container< brep_face >
brep_meshm_mesh
 

Detailed Description

B-rep face container.

Definition at line 274 of file brep-face.hpp.

Member Function Documentation

◆ clear()

void geom::brep_face_container::clear ( )
noexcept

Erases all faces and their loops.

Definition at line 138 of file brep-face.cpp.

◆ emplace_back()

brep_face * geom::brep_face_container::emplace_back ( const std::span< brep_vertex * >  vertices)

Appends a new face to the end of the container.

Parameters
verticesOrdered vertices of the face.
Returns
Pointer to the new face.

Definition at line 73 of file brep-face.cpp.

◆ erase()

void geom::brep_face_container::erase ( brep_face face)
overridevirtual

Erases a face and all of its loops.

Parameters
facePointer to the face to erase.
Warning
Invalidates iterators and indices of loops and faces.

Reimplemented from geom::brep_element_container< brep_face >.

Definition at line 117 of file brep-face.cpp.

◆ reverse()

void geom::brep_face_container::reverse ( brep_face face)

Reverses the direction of a face's bounding loops.

Parameters
faceFace bounded by the loops to reverse.

Definition at line 146 of file brep-face.cpp.

Friends And Related Function Documentation

◆ brep_mesh

friend class brep_mesh
friend

Definition at line 308 of file brep-face.hpp.


The documentation for this class was generated from the following files: