Wildmeshing Toolkit
TetCellSplit.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
wmtk/operations/EdgeCollapse.hpp
>
4
#include <
wmtk/operations/EdgeSplit.hpp
>
5
6
namespace
wmtk::operations::composite
{
18
class
TetCellSplit
:
public
Operation
19
{
20
public
:
21
TetCellSplit
(
Mesh
& m);
22
23
PrimitiveType
primitive_type
()
const override
{
return
PrimitiveType::Tetrahedron
; }
24
25
inline
EdgeSplit
&
split
() {
return
m_split
; }
26
inline
EdgeCollapse
&
collapse
() {
return
m_collapse
; }
27
28
29
protected
:
30
std::vector<simplex::Simplex>
execute
(
const
simplex::Simplex
& simplex)
override
;
31
std::vector<simplex::Simplex>
unmodified_primitives
(
32
const
simplex::Simplex
& simplex)
const override
;
33
34
private
:
35
EdgeSplit
m_split
;
36
EdgeCollapse
m_collapse
;
37
};
38
39
}
// namespace wmtk::operations::composite
EdgeCollapse.hpp
EdgeSplit.hpp
wmtk::Mesh
Definition:
Mesh.hpp:106
wmtk::operations::EdgeCollapse
Definition:
EdgeCollapse.hpp:8
wmtk::operations::EdgeSplit
Definition:
EdgeSplit.hpp:9
wmtk::operations::Operation
Definition:
Operation.hpp:24
wmtk::operations::composite::TetCellSplit
TetCellSplit.
Definition:
TetCellSplit.hpp:19
wmtk::operations::composite::TetCellSplit::unmodified_primitives
std::vector< simplex::Simplex > unmodified_primitives(const simplex::Simplex &simplex) const override
Returns all simplices that will be potentially affected by the operation.
Definition:
TetCellSplit.cpp:66
wmtk::operations::composite::TetCellSplit::TetCellSplit
TetCellSplit(Mesh &m)
Definition:
TetCellSplit.cpp:8
wmtk::operations::composite::TetCellSplit::m_split
EdgeSplit m_split
Definition:
TetCellSplit.hpp:35
wmtk::operations::composite::TetCellSplit::execute
std::vector< simplex::Simplex > execute(const simplex::Simplex &simplex) override
returns an empty vector in case of failure
Definition:
TetCellSplit.cpp:14
wmtk::operations::composite::TetCellSplit::collapse
EdgeCollapse & collapse()
Definition:
TetCellSplit.hpp:26
wmtk::operations::composite::TetCellSplit::split
EdgeSplit & split()
Definition:
TetCellSplit.hpp:25
wmtk::operations::composite::TetCellSplit::m_collapse
EdgeCollapse m_collapse
Definition:
TetCellSplit.hpp:36
wmtk::operations::composite::TetCellSplit::primitive_type
PrimitiveType primitive_type() const override
Definition:
TetCellSplit.hpp:23
wmtk::simplex::Simplex
Definition:
Simplex.hpp:22
wmtk::operations::composite
Definition:
ProjectOperation.cpp:8
wmtk::PrimitiveType
PrimitiveType
Definition:
PrimitiveType.hpp:9
wmtk::PrimitiveType::Tetrahedron
@ Tetrahedron
src
wmtk
operations
composite
TetCellSplit.hpp
Generated by
1.9.1