Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
cubvh
Commits
8f0c777c
Commit
8f0c777c
authored
Feb 21, 2025
by
ashawkey
Browse files
fix readme
parent
9bb0634a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
readme.md
readme.md
+6
-1
No files found.
readme.md
View file @
8f0c777c
...
@@ -67,6 +67,11 @@ distances, face_id, uvw = BVH.signed_distance(points, return_uvw=True, mode='ray
...
@@ -67,6 +67,11 @@ distances, face_id, uvw = BVH.signed_distance(points, return_uvw=True, mode='ray
UDF + flood-fill for possibly non-watertight/single-layer meshes:
UDF + flood-fill for possibly non-watertight/single-layer meshes:
```
python
```
python
import
torch
import
cubvh
import
numpy
as
np
from
skimage
import
morphology
resolution
=
512
resolution
=
512
device
=
torch
.
device
(
'cuda'
)
device
=
torch
.
device
(
'cuda'
)
...
@@ -88,7 +93,7 @@ occ = udf < 2 / resolution # tolerance 2 voxels
...
@@ -88,7 +93,7 @@ occ = udf < 2 / resolution # tolerance 2 voxels
empty_mask
=
morphology
.
flood
(
occ
,
(
0
,
0
,
0
),
connectivity
=
1
)
# flood from the corner, which is for sure empty
empty_mask
=
morphology
.
flood
(
occ
,
(
0
,
0
,
0
),
connectivity
=
1
)
# flood from the corner, which is for sure empty
occ
=
~
empty_mask
occ
=
~
empty_mask
```
```
Check
[
`test/
robust
_occupancy.py`
](
test/
robust
_occupancy.py
)
for more details.
Check
[
`test/
extract_mesh
_occupancy.py`
](
test/
extract_mesh
_occupancy.py
)
for more details.
**Renderer:**
**Renderer:**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment