MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::BooleanPreCutResult Struct Reference

no version of the function with rvalue-referenced meshes, because meshes' copies are currently used for sorting intersections More...

#include <MRMesh/MRMeshBoolean.h>

Public Member Functions

SortIntersectionsData sortData (const Mesh &otherMesh) const

Public Attributes

Mesh mesh
OneMeshContours contours
ContinuousContours intersections
 the boolean's ordered intersections of both meshes, without the closed contours of two points
ConvertToIntVector toInt
 the boolean's conversion of the coordinates of both meshes to integers
std::optional< AffineXf3f > rigidB2A
 a copy of the boolean's transformation from mesh B to mesh A
size_t meshAVertsNum = 0
 the number of vertices of mesh A before any cut
bool isMeshA = false
 whether mesh is mesh A of the boolean

Detailed Description

no version of the function with rvalue-referenced meshes, because meshes' copies are currently used for sorting intersections

a mesh of the boolean and its contours of intersection with the other mesh before the cut, with the boolean's data for an exact cut; the contours can include lone ones (inside one face, crossing none of its edges), which cutMesh connects exactly only given the boolean's sorting data, see sortData

Member Function Documentation

◆ sortData()

SortIntersectionsData MR::BooleanPreCutResult::sortData ( const Mesh & otherMesh) const
inlinenodiscard

the data to pass cutMesh( mesh, contours ) in CutMeshParameters::sortData for the boolean's exact cut, where otherMesh is the other mesh of the boolean as it was passed to it; the result points into this struct and otherMesh, so both must outlive its use

Member Data Documentation

◆ contours

OneMeshContours MR::BooleanPreCutResult::contours

◆ intersections

ContinuousContours MR::BooleanPreCutResult::intersections

the boolean's ordered intersections of both meshes, without the closed contours of two points

◆ isMeshA

bool MR::BooleanPreCutResult::isMeshA = false

whether mesh is mesh A of the boolean

◆ mesh

Mesh MR::BooleanPreCutResult::mesh

◆ meshAVertsNum

size_t MR::BooleanPreCutResult::meshAVertsNum = 0

the number of vertices of mesh A before any cut

◆ rigidB2A

std::optional<AffineXf3f> MR::BooleanPreCutResult::rigidB2A

a copy of the boolean's transformation from mesh B to mesh A

◆ toInt

ConvertToIntVector MR::BooleanPreCutResult::toInt

the boolean's conversion of the coordinates of both meshes to integers


The documentation for this struct was generated from the following file: