ug4
ug::PlaneCutProjector Class Reference

calculates new positions by cutting parent edges with a plane More...

#include <plane_cut_projector.h>

+ Inheritance diagram for ug::PlaneCutProjector:

Public Member Functions

virtual number new_vertex (Vertex *vrt, Edge *parent)
 called when a new vertex was created from an old edge. More...
 
const vector3normal () const
 
 PlaneCutProjector ()
 
 PlaneCutProjector (const vector3 &position, const vector3 &normal)
 
 PlaneCutProjector (SPIGeometry3d geometry, const vector3 &position, const vector3 &normal)
 
const vector3position () const
 
void set_normal (const vector3 &normal)
 
void set_position (const vector3 &position)
 
virtual ~PlaneCutProjector ()
 
- Public Member Functions inherited from ug::RefinementProjector
virtual SPIGeometry3d geometry () const
 
virtual number new_vertex (Vertex *vrt, Face *parent)
 called when a new vertex was created from an old face. More...
 
virtual number new_vertex (Vertex *vrt, Vertex *parent)
 called when a new vertex was created from an old vertex. More...
 
virtual number new_vertex (Vertex *vrt, Volume *parent)
 called when a new vertex was created from an old volume. More...
 
virtual void refinement_begins (const ISubGrid *sg)
 called before refinement begins More...
 
virtual bool refinement_begins_requires_subgrid () const
 
virtual void refinement_ends ()
 called when refinement is done More...
 
 RefinementProjector ()
 
 RefinementProjector (SPElementCallback cb)
 
 RefinementProjector (SPIGeometry3d geometry)
 
 RefinementProjector (SPIGeometry3d geometry, SPElementCallback concernedElems)
 
virtual void set_concerned_elements (SPElementCallback cb)
 
virtual void set_geometry (SPIGeometry3d geometry)
 
virtual ~RefinementProjector ()
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

vector3 m_n
 
vector3 m_p
 

Friends

class boost::serialization::access
 

Additional Inherited Members

- Protected Member Functions inherited from ug::RefinementProjector
IGeometry3dgeom ()
 
const IGeometry3dgeom () const
 
template<class TElem >
bool is_concerned (TElem *e)
 
vector3 pos (Vertex *v) const
 
void set_pos (Vertex *v, const vector3 &p)
 

Detailed Description

calculates new positions by cutting parent edges with a plane

For each edge the intersection of the edge with the initially given plane is calculated and used as new point. Vertices created on other geometric objects are treated as in the linear case.

Constructor & Destructor Documentation

◆ PlaneCutProjector() [1/3]

ug::PlaneCutProjector::PlaneCutProjector ( )
inline

◆ PlaneCutProjector() [2/3]

ug::PlaneCutProjector::PlaneCutProjector ( const vector3 position,
const vector3 normal 
)
inline

◆ PlaneCutProjector() [3/3]

ug::PlaneCutProjector::PlaneCutProjector ( SPIGeometry3d  geometry,
const vector3 position,
const vector3 normal 
)
inline

◆ ~PlaneCutProjector()

virtual ug::PlaneCutProjector::~PlaneCutProjector ( )
inlinevirtual

Member Function Documentation

◆ new_vertex()

virtual number ug::PlaneCutProjector::new_vertex ( Vertex vrt,
Edge parent 
)
inlinevirtual

◆ normal()

const vector3& ug::PlaneCutProjector::normal ( ) const
inline

References m_n.

Referenced by set_normal().

◆ position()

const vector3& ug::PlaneCutProjector::position ( ) const
inline

References m_p.

Referenced by set_position().

◆ serialize()

template<class Archive >
void ug::PlaneCutProjector::serialize ( Archive &  ar,
const unsigned int  version 
)
inlineprivate

◆ set_normal()

void ug::PlaneCutProjector::set_normal ( const vector3 normal)
inline

References m_n, and normal().

◆ set_position()

void ug::PlaneCutProjector::set_position ( const vector3 position)
inline

References m_p, and position().

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Member Data Documentation

◆ m_n

vector3 ug::PlaneCutProjector::m_n
private

◆ m_p

vector3 ug::PlaneCutProjector::m_p
private

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