Skip to content

Is there any way to get the width of Dense bounding box of any mesh #3232

Answered by Grantim
dhanraj-khatal asked this question in Q&A
Discussion options

You must be logged in to vote

Hello!
Looks like DenseBox functionality is not exposed to python yet. We will expose it and return back here. For now you can use one of these functions:

thicknessPerVertex = meshlib.mrmeshpy.computeRayThicknessAtVertices( mesh )
# or
settings = meshlib.mrmeshpy.InSphereSearchSettings()
settings.maxRadius = mesh.computeBoundingBox().diagonal()
thicknessPerVertex = meshlib.mrmeshpy.computeInSphereThicknessAtVertices( mesh, settings )

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@dhanraj-khatal
Comment options

@Grantim
Comment options

@dhanraj-khatal
Comment options

@Grantim
Comment options

@dhanraj-khatal
Comment options

Answer selected by dhanraj-khatal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants