MeshLib
 
Loading...
Searching...
No Matches
MR::BooleanResultMapper Struct Reference

Structure to map old mesh BitSets to new. More...

#include <MRBooleanOperation.h>

Classes

struct  Maps
 

Public Types

enum class  MapObject { A , B , Count }
 Input object index enum. More...
 

Public Member Functions

 BooleanResultMapper ()=default
 
MRMESH_API FaceBitSet map (const FaceBitSet &oldBS, MapObject obj) const
 Returns faces bitset of result mesh corresponding input one.
 
MRMESH_API VertBitSet map (const VertBitSet &oldBS, MapObject obj) const
 Returns vertices bitset of result mesh corresponding input one.
 
MRMESH_API EdgeBitSet map (const EdgeBitSet &oldBS, MapObject obj) const
 Returns edges bitset of result mesh corresponding input one.
 
MRMESH_API FaceBitSet newFaces () const
 Returns only new faces that are created during boolean operation.
 
MRMESH_API FaceBitSet filteredOldFaceBitSet (const FaceBitSet &oldBS, MapObject obj)
 returns updated oldBS leaving only faces that has corresponding ones in result mesh
 
const MapsgetMaps (MapObject index) const
 

Public Attributes

std::array< Maps, size_t(MapObject::Count)> maps
 

Detailed Description

Structure to map old mesh BitSets to new.

Structure to easily map topology of MR::boolean input meshes to result mesh

This structure allows to map faces, vertices and edges of mesh A and mesh B input of MR::boolean to result mesh topology primitives

See also
MR::boolean

Member Enumeration Documentation

◆ MapObject

Input object index enum.

Enumerator
Count 

Constructor & Destructor Documentation

◆ BooleanResultMapper()

MR::BooleanResultMapper::BooleanResultMapper ( )
default

Member Function Documentation

◆ filteredOldFaceBitSet()

MRMESH_API FaceBitSet MR::BooleanResultMapper::filteredOldFaceBitSet ( const FaceBitSet & oldBS,
MapObject obj )

returns updated oldBS leaving only faces that has corresponding ones in result mesh

◆ getMaps()

const Maps & MR::BooleanResultMapper::getMaps ( MapObject index) const
inlinenodiscard

◆ map() [1/3]

MRMESH_API EdgeBitSet MR::BooleanResultMapper::map ( const EdgeBitSet & oldBS,
MapObject obj ) const

Returns edges bitset of result mesh corresponding input one.

◆ map() [2/3]

MRMESH_API FaceBitSet MR::BooleanResultMapper::map ( const FaceBitSet & oldBS,
MapObject obj ) const

Returns faces bitset of result mesh corresponding input one.

◆ map() [3/3]

MRMESH_API VertBitSet MR::BooleanResultMapper::map ( const VertBitSet & oldBS,
MapObject obj ) const

Returns vertices bitset of result mesh corresponding input one.

◆ newFaces()

MRMESH_API FaceBitSet MR::BooleanResultMapper::newFaces ( ) const

Returns only new faces that are created during boolean operation.

Member Data Documentation

◆ maps

std::array<Maps, size_t( MapObject::Count )> MR::BooleanResultMapper::maps

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