MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / doubleOffsetMesh

Function doubleOffsetMesh

source/MRVoxels/MROffset.cpp:102–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102Expected<Mesh> doubleOffsetMesh( const MeshPart& mp, float offsetA, float offsetB, const OffsetParameters& params /*= {} */ )
103{
104 assert ( params.signDetectionMode != SignDetectionMode::Unsigned );
105 return doubleOffsetVdb( mp,
106 {
107 .voxelSize = params.voxelSize,
108 .offsetA = offsetA,
109 .offsetB = offsetB,
110 .fwn = params.fwn,
111 .windingNumberThreshold = params.windingNumberThreshold,
112 .windingNumberBeta = params.windingNumberBeta,
113 .progress = params.callBack
114 } );
115}
116
117Expected<Mesh> mcOffsetMesh( const MeshPart& mp, float offset,
118 const OffsetParameters& params, Vector<VoxelId, FaceId> * outMap )

Callers 2

TestOffsetsMethod · 0.85
EMSCRIPTEN_BINDINGSFunction · 0.85

Calls 1

doubleOffsetVdbFunction · 0.85

Tested by 1

TestOffsetsMethod · 0.68