33 #ifndef __H__UG_subdivision_projector
34 #define __H__UG_subdivision_projector
109 Edge* creaseEdgesOut[2] = NULL);
113 Face* facesOut[2] = NULL);
118 template <
class Archive>
119 void serialize( Archive& ar,
const unsigned int version)
#define UG_EMPTY_BASE_CLASS_SERIALIZATION(clsDerived, clsBase)
Definition: boost_serialization.h:51
callback that always returns false
Definition: basic_callbacks.h:59
Base-class for edges.
Definition: grid_base_objects.h:397
Faces are 2-dimensional objects.
Definition: grid_base_objects.h:510
Manages the elements of a grid and their interconnection.
Definition: grid.h:132
Instances represent a part of a grid.
Definition: sub_grid.h:44
Definition: topology_callbacks.h:85
Container which holds an array of pointers.
Definition: pointer_const_array.h:84
Adjusts vertex coordinates during refinement.
Definition: refinement_projector.h:55
virtual void set_concerned_elements(SPElementCallback cb)
Definition: refinement_projector.h:84
virtual void set_geometry(SPIGeometry3d geometry)
Definition: refinement_projector.h:76
virtual SPIGeometry3d geometry() const
Definition: refinement_projector.h:81
Applies piecewise smooth loop subdivision rules.
Definition: subdivision_projector.h:50
virtual void set_crease_callback(Grid::edge_traits::callback cbIsCrease)
Definition: subdivision_projector.h:101
virtual void refinement_ends()
called when refinement is done
Definition: subdivision_projector.cpp:102
Grid::edge_traits::callback m_cbIsCrease
Definition: subdivision_projector.h:127
virtual void set_concerned_elements(SPElementCallback cb)
Definition: subdivision_projector.h:86
bool m_customConcernedElementsCallbackUsed
Definition: subdivision_projector.h:129
SubdivisionProjector()
Definition: subdivision_projector.h:52
virtual void refinement_begins(const ISubGrid *sg)
called before refinement begins
Definition: subdivision_projector.cpp:41
SubdivisionProjector(Grid::edge_traits::callback cbIsCrease)
Definition: subdivision_projector.h:57
size_t concerned_nbr_faces(Edge *edge, Grid::face_traits::secure_container *assFaces=NULL, Face *facesOut[2]=NULL)
Definition: subdivision_projector.cpp:256
std::vector< std::pair< Vertex *, vector3 > > new_pos_vec_t
Definition: subdivision_projector.h:125
void serialize(Archive &ar, const unsigned int version)
Definition: subdivision_projector.h:119
new_pos_vec_t m_newPositions
Definition: subdivision_projector.h:128
friend class boost::serialization::access
Definition: subdivision_projector.h:116
virtual void set_geometry(SPIGeometry3d geometry)
Definition: subdivision_projector.h:77
size_t nbr_crease_edges(Vertex *vrt, Grid::edge_traits::secure_container *assEdges=NULL, Edge *creaseEdgesOut[2]=NULL)
Definition: subdivision_projector.cpp:200
SubdivisionProjector(SPIGeometry3d geometry)
Definition: subdivision_projector.h:63
virtual bool refinement_begins_requires_subgrid() const
Definition: subdivision_projector.h:92
virtual number new_vertex(Vertex *vrt, Edge *parent)
called when a new vertex was created from an old edge.
Definition: subdivision_projector.cpp:131
SubdivisionProjector(SPIGeometry3d geometry, Grid::edge_traits::callback cbIsCrease)
Definition: subdivision_projector.h:70
Base-class for all vertex-types.
Definition: grid_base_objects.h:231
double number
Definition: types.h:124
SmartPtr< T, FreePolicy > make_sp(T *inst)
returns a SmartPtr for the passed raw pointer
Definition: smart_pointer.h:836
boost::function< bool(base_object *)> callback
callback type for the elements base type.
Definition: grid.h:150
function ProblemDisc new(problemDesc, dom)