-
Notifications
You must be signed in to change notification settings - Fork 666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tube and Dilated Mesh Level Set Constructors #1935
base: master
Are you sure you want to change the base?
Tube and Dilated Mesh Level Set Constructors #1935
Conversation
* Base class ConvexVoxelizer which provides the groundwork to create a level set of a convex region * Level set constructor methods: createLevelSetCapsule, createLevelSetTaperedCapsule, createLevelSetTubeComplex, createLevelSetThickenedMesh Signed-off-by: ghurstunither <[email protected]>
Addresses CI Linux compilation warnings Signed-off-by: ghurstunither <[email protected]>
Addresses CI Linux compilation warnings Signed-off-by: ghurstunither <[email protected]>
Addresses CI Linux compilation warnings Signed-off-by: ghurstunither <[email protected]>
Addresses CI Linux compilation warnings Signed-off-by: ghurstunither <[email protected]>
Addresses CI Linux compilation warnings Signed-off-by: ghurstunither <[email protected]>
Addresses CI Linux compilation warnings Signed-off-by: ghurstunither <[email protected]>
Adhere to OpenVDB style guideline "The return type in a function definition should go on a line by itself." Signed-off-by: ghurstunither <[email protected]>
Fixes some typos Signed-off-by: ghurstunither <[email protected]>
Correct SPDX-License-Identifier Signed-off-by: ghurstunither <[email protected]>
Changes createLevelSetThickenedMesh to createLevelSetDilatedMesh. Signed-off-by: ghurstunither <[email protected]>
|
Adds the new level set constructors to pendingchanges. Signed-off-by: ghurstunither <[email protected]>
setXYRangeData and tileCanFit are no longer virtual, making ConvexVoxelizer fully embrace CRTP. Signed-off-by: ghurstunither <[email protected]>
ConvexVoxelizer and derived classes now work with the grid's ValueType precision instead of float. The createLevelSetXXX constructors now are templated on a scalar type for the precision of the input data. Signed-off-by: ghurstunither <[email protected]>
Store reference to grid in ConvexVoxelizer instead of the tree. Signed-off-by: ghurstunither <[email protected]>
Adds test file for testing tubes. * to test capsule and tapered capsule area, volume, gauss&mean curvature analytically derived formulas * tests for capsules Signed-off-by: ghurstunither <[email protected]>
Tests for tapered capsules. Signed-off-by: ghurstunither <[email protected]>
Tests for tube complex. Signed-off-by: ghurstunither <[email protected]>
Fix some linux build failures. Signed-off-by: ghurstunither <[email protected]>
Adds tests for dilated mesh. Signed-off-by: ghurstunither <[email protected]>
Correct type in test. Signed-off-by: ghurstunither <[email protected]>
Removes unnecessary includes. Signed-off-by: ghurstunither <[email protected]>
@danrbailey I believe I have made every change you suggested a couple meetings ago.
Do you think it makes sense to move the content in ConvexVoxelizer.h into LevelSetUtil.h, changing the class |
Adds more dilated mesh tests for more degenerate cases and different types of triangle 'defects'. Signed-off-by: ghurstunither <[email protected]>
Fixes incorrect type for faces. Signed-off-by: ghurstunither <[email protected]>
Split dilated mesh tests into multiple fixtures. Signed-off-by: ghurstunither <[email protected]>
Handle negative radii & empty data containers more carefully. Signed-off-by: ghurstunither <[email protected]>
Trailing Spaces. Signed-off-by: ghurstunither <[email protected]>
Summary
This PR introduces level set constructors for
A base class
ConvexVoxelizer
, which provides the infrastructure for convex level set construction, is also introduced.class tools::ConvexVoxelizer
tools/ConvexVoxelizer.h
This base class requires the derived class implement methods such as
setXYRangeData
bottomTop
signedDistance
tileCanFit
tilePointSignedDistance
A simple example that creates a level set sphere can be found in the doxygen here.
Click me to see the same example here
tools::createLevelSetCapsule
Implemented in
tools/LevelSetTubes.h
viaclass CapsuleVoxelizer
:and
Example:
yielding
tools::createLevelSetTaperedCapsule
Implemented in
tools/LevelSetTubes.h
viaclass TaperedCapsuleVoxelizer
:and
Example:
yielding
tools::createLevelSetTubeComplex
Implemented in
tools/LevelSetTubes.h
viaclass TubeComplexVoxelizer
:and
The different
TubeRadiiPolicy
are described here.Example of constant radius:
yielding
Example of varying radius:
yielding
tools::createLevelSetDilatedMesh
Implemented in
tools/LevelSetDilatedMesh.h
viaclass DilatedMeshVoxelizer
:and
and
Initialize mesh data:
Example of triangle mesh:
yielding
Example of quad mesh:
yielding
Example of mixed mesh:
yielding