33 #ifndef __H__UG_plane_cut_projector
34 #define __H__UG_plane_cut_projector
95 template <
class Archive>
96 void serialize( Archive& ar,
const unsigned int version)
98 ar & make_nvp(
"position",
m_p);
99 ar & make_nvp(
"normal",
m_n);
#define UG_EMPTY_BASE_CLASS_SERIALIZATION(clsDerived, clsBase)
Definition: boost_serialization.h:51
Base-class for edges.
Definition: grid_base_objects.h:397
virtual Vertex * vertex(size_t index) const
Definition: grid_base_objects.h:366
calculates new positions by cutting parent edges with a plane
Definition: plane_cut_projector.h:45
PlaneCutProjector(SPIGeometry3d geometry, const vector3 &position, const vector3 &normal)
Definition: plane_cut_projector.h:59
void set_normal(const vector3 &normal)
Definition: plane_cut_projector.h:72
vector3 m_n
Definition: plane_cut_projector.h:104
PlaneCutProjector(const vector3 &position, const vector3 &normal)
Definition: plane_cut_projector.h:52
vector3 m_p
Definition: plane_cut_projector.h:103
virtual ~PlaneCutProjector()
Definition: plane_cut_projector.h:67
void serialize(Archive &ar, const unsigned int version)
Definition: plane_cut_projector.h:96
virtual number new_vertex(Vertex *vrt, Edge *parent)
called when a new vertex was created from an old edge.
Definition: plane_cut_projector.h:76
PlaneCutProjector()
Definition: plane_cut_projector.h:47
const vector3 & normal() const
Definition: plane_cut_projector.h:73
void set_position(const vector3 &position)
Definition: plane_cut_projector.h:69
const vector3 & position() const
Definition: plane_cut_projector.h:70
friend class boost::serialization::access
Definition: plane_cut_projector.h:93
Adjusts vertex coordinates during refinement.
Definition: refinement_projector.h:55
void set_pos(Vertex *v, const vector3 &p)
Definition: refinement_projector.h:157
virtual number new_vertex(Vertex *vrt, Vertex *parent)
called when a new vertex was created from an old vertex.
Definition: refinement_projector.h:121
vector3 pos(Vertex *v) const
Definition: refinement_projector.h:149
virtual SPIGeometry3d geometry() const
Definition: refinement_projector.h:81
Base-class for all vertex-types.
Definition: grid_base_objects.h:231
double number
Definition: types.h:124
bool RayPlaneIntersection(vector_t &vOut, number &tOut, const vector_t &rayFrom, const vector_t &rayDir, const vector_t &p, const vector_t &n)
calculates the intersection of the ray rayFrom+t*rayDir and the plane (x-p)*n=0.
Definition: math_util_impl.hpp:360
void VecSubtract(vector_t &vOut, const vector_t &v1, const vector_t &v2)
subtracts v2 from v1 and stores the result in a vOut
Definition: math_vector_functions_common_impl.hpp:226