15 const VertMetric & vertValues,
const FaceBitSet * region =
nullptr );
19 const VertMetric & vertValues,
const FaceBitSet * region =
nullptr );
23 const VertScalars & vertValues,
float isoValue,
const FaceBitSet * region =
nullptr );
27 const VertScalars & vertValues,
float isoValue,
const FaceBitSet * region =
nullptr );
#define MRMESH_API
Definition MRMeshFwd.h:80
Definition MRMeshTopology.h:23
std::function< float(VertId)> VertMetric
Definition MRMeshFwd.h:582
bool hasAnyIsoline(const MeshTopology &topology, const VertMetric &vertValues, const FaceBitSet *region=nullptr)
quickly returns true if extractIsolines produce not-empty set for the same arguments
FaceBitSet getCrossedFaces(const MeshTopology &topology, const IsoLine &isoline)
for a consistently oriented isoline, returns all faces it goes inside
Contour2< float > Contour2f
Definition MRMeshFwd.h:380
bool ccw(const Vector2i &a, const Vector2i &b)
bool hasAnyPlaneSection(const MeshPart &mp, const Plane3f &plane, UseAABBTree u=UseAABBTree::Yes)
quickly returns true if extractPlaneSections produce not-empty set for the same arguments
IsoLines extractIsolines(const MeshTopology &topology, const VertMetric &vertValues, const FaceBitSet *region=nullptr)
extracts all iso-lines from given scalar field and iso-value=0
SurfacePaths PlaneSections
Definition MRMeshFwd.h:486
Plane3f
Definition MRMeshFwd.h:393
tl::expected< T, E > Expected
Definition MRExpected.h:31
SurfacePath IsoLine
Definition MRMeshFwd.h:483
Contour2f planeSectionToContour2f(const Mesh &mesh, const PlaneSection §ion, const AffineXf3f &meshToPlane)
converts PlaneSections in 2D contours by computing coordinate of each point, applying given xf to it,...
bool hasAnyXYPlaneSection(const MeshPart &mp, float zLevel, UseAABBTree u=UseAABBTree::Yes)
quickly returns true if extractXYPlaneSections produce not-empty set for the same arguments
Contours2< float > Contours2f
Definition MRMeshFwd.h:388
SurfacePath PlaneSection
Definition MRMeshFwd.h:485
std::vector< LineSegm3f > findTriangleSectionsByXYPlane(const MeshPart &mp, float zLevel, std::vector< FaceId > *faces=nullptr, UseAABBTree u=UseAABBTree::Yes)
Contours2f planeSectionsToContours2f(const Mesh &mesh, const PlaneSections §ions, const AffineXf3f &meshToPlane)
PlaneSection trackSection(const MeshPart &mp, const MeshTriPoint &start, MeshTriPoint &end, const Vector3f &direction, float distance)
SurfacePaths IsoLines
Definition MRMeshFwd.h:484
bool isConsistentlyOriented(const MeshTopology &topology, const IsoLine &isoline)
PlaneSections extractXYPlaneSections(const MeshPart &mp, float zLevel, UseAABBTree u=UseAABBTree::Yes)
extracts all sections of given mesh with the plane z=zLevel
UseAABBTree
Definition MREnums.h:98
PlaneSections extractPlaneSections(const MeshPart &mp, const Plane3f &plane, UseAABBTree u=UseAABBTree::Yes)
extracts all plane sections of given mesh
@ direction
Length or size.
Definition MRFeatureObject.h:25
@ Yes
AABB-tree of the mesh will not be used, even if it is available.
Definition MREnums.h:100
std::optional< T > distance(const Plane3< T > &plane1, const Plane3< T > &plane2, T errorLimit=std::numeric_limits< T >::epsilon() *T(20))
Definition MRIntersection.h:104
auto end(ViewportMask)
Definition MRViewportId.h:124
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRMeshTriPoint.h:26