43#pragma GCC diagnostic push
44#pragma GCC diagnostic ignored "-Wstringop-overflow"
50 auto onEdgeSplit = [&] ( EdgeId e1, EdgeId e )
54 if ( org < data.
size() && dest < data.
size() )
55 data.
push_back( data[org] * 0.5f + data[dest] * 0.5f );
62#pragma GCC diagnostic pop
68 auto onEdgeSplit = [&] ( EdgeId e1, EdgeId e )
75 if ( newLeft && oldLeft && oldLeft < data.
size() )
83 if ( newRight && oldRight && oldRight < data.
size() )
#define MRMESH_API
Definition MRMeshFwd.h:85
Vector<T> is indexed by size_t.
Definition MRVector.h:24
std::size_t size() const
Definition MRVector.h:70
OnEdgeSplit meshOnEdgeSplitFaceAttribute(const Mesh &mesh, const MeshAttributesToUpdate ¶ms)
FaceId left(EdgeId he) const
returns left face of half-edge
Definition MRMeshTopology.h:115
VertId dest(EdgeId he) const
returns destination vertex of half-edge
Definition MRMeshTopology.h:112
void autoResizeSet(I pos, size_t len, T val)
Definition MRVector.h:113
void push_back(const T &t MR_LIFETIME_CAPTURE_BY_NESTED(this))
Definition MRVector.h:145
VertId org(EdgeId he) const
returns origin vertex of half-edge
Definition MRMeshTopology.h:109
OnEdgeSplit meshOnEdgeSplitVertAttribute(const Mesh &mesh, const MeshAttributesToUpdate ¶ms)
auto onEdgeSplitVertAttribute(const Mesh &mesh, Vector< T, VertId > &data)
Definition MRMeshSubdivideCallbacks.h:48
auto onEdgeSplitFaceAttribute(const Mesh &mesh, Vector< T, FaceId > &data)
Definition MRMeshSubdivideCallbacks.h:66
OnEdgeSplit meshOnEdgeSplitAttribute(const Mesh &mesh, const MeshAttributesToUpdate ¶ms)
std::function< void(EdgeId e1, EdgeId e)> OnEdgeSplit
Definition MRMeshFwd.h:597
FaceId right(EdgeId he) const
returns right face of half-edge
Definition MRMeshTopology.h:118
Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).
Definition MRCameraOrientationPlugin.h:8
the attribute data of the mesh that needs to be updated
Definition MRMeshAttributesToUpdate.h:13
MeshTopology topology
Definition MRMesh.h:25