-
Notifications
You must be signed in to change notification settings - Fork 658
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
Open
ghurstunither
wants to merge
19
commits into
AcademySoftwareFoundation:master
Choose a base branch
from
ghurstunither:feature/levet_set_constructors
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Tube and Dilated Mesh Level Set Constructors #1935
ghurstunither
wants to merge
19
commits into
AcademySoftwareFoundation:master
from
ghurstunither:feature/levet_set_constructors
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* 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]>
ghurstunither
changed the title
Tube and Thickened Mesh Level Set Constructors
Tube and Dilated Mesh Level Set Constructors
Oct 23, 2024
Adds the new level set constructors to pendingchanges. Signed-off-by: ghurstunither <[email protected]>
ghurstunither
requested review from
apradhana,
jmlait,
Idclip,
danrbailey and
richhones
as code owners
October 24, 2024 14:51
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]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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