MeshLib C++ Docs
Loading...
Searching...
No Matches
MRMeshDivideWithPlane.h
Go to the documentation of this file.
1#pragma once
2#include "MRMeshFwd.h"
3#include "MRPlane3.h"
4#include "MRObjectMeshData.h"
5
6namespace MR
7{
10
11
13{
15 float eps{ 0.0f };
16
18 bool fillCut{ true };
19
21 bool subdivideFilling{ false };
22
25
27 std::vector<std::string>* errors{ nullptr };
28};
29
32MRMESH_API void divideMeshWithPlane( ObjectMeshData& data, const Plane3f& plane, const DivideMeshWithPlaneParams& divideParams = {} );
33
34}
#define MRMESH_API
Definition MRMeshFwd.h:80
float eps
if existing vertex is within eps distance from the plane, then move the vertex not introducing new on...
Definition MRMeshDivideWithPlane.h:15
ObjectMeshData * otherPart
optional output other part of dividing (expected to be empty)
Definition MRMeshDivideWithPlane.h:24
bool fillCut
if set - function tries to fill cut after dividing (this operation might fail leading to "params....
Definition MRMeshDivideWithPlane.h:18
Plane3f
Definition MRMeshFwd.h:393
void divideMeshWithPlane(ObjectMeshData &data, const Plane3f &plane, const DivideMeshWithPlaneParams &divideParams={})
bool subdivideFilling
if set and filled - function subdivides filling after cut
Definition MRMeshDivideWithPlane.h:21
std::vector< std::string > * errors
optional output list of errors that could possibly happen during 'divideMeshWithPlane' function call
Definition MRMeshDivideWithPlane.h:27
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRMeshDivideWithPlane.h:13
mesh and its per-element attributes for ObjectMeshHolder
Definition MRObjectMeshData.h:17