Antkeeper
0.0.1
|
B-rep face container. More...
#include <brep-face.hpp>
Public Member Functions | |
brep_face * | emplace_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... | |
![]() | |
constexpr element_type * | operator[] (std::size_t i) const |
Returns a pointer to the element at the specified index. More... | |
constexpr element_type * | front () const noexcept |
Returns the first element. More... | |
constexpr element_type * | back () 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_map & | attributes () const noexcept |
Returns the element attribute map. More... | |
brep_attribute_map & | attributes () noexcept |
Returns the element attribute map. More... | |
Friends | |
class | brep_mesh |
Additional Inherited Members | |
![]() | |
using | element_type = brep_face |
using | const_reverse_iterator = std::reverse_iterator< const_iterator > |
![]() | |
brep_element_container (brep_mesh *mesh) noexcept | |
Constructs a B-rep element container. More... | |
virtual element_type * | emplace_back () |
Appends a new element to the end of the container. More... | |
![]() | |
brep_mesh * | m_mesh |
B-rep face container.
Definition at line 274 of file brep-face.hpp.
|
noexcept |
Erases all faces and their loops.
Definition at line 138 of file brep-face.cpp.
brep_face * geom::brep_face_container::emplace_back | ( | const std::span< brep_vertex * > | vertices | ) |
Appends a new face to the end of the container.
vertices | Ordered vertices of the face. |
Definition at line 73 of file brep-face.cpp.
|
overridevirtual |
Erases a face and all of its loops.
face | Pointer to the face to erase. |
Reimplemented from geom::brep_element_container< brep_face >.
Definition at line 117 of file brep-face.cpp.
void geom::brep_face_container::reverse | ( | brep_face * | face | ) |
Reverses the direction of a face's bounding loops.
face | Face bounded by the loops to reverse. |
Definition at line 146 of file brep-face.cpp.
|
friend |
Definition at line 308 of file brep-face.hpp.