Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gnomon-package-tissueimagemesh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
gnomon
gnomon-packages
gnomon-package-tissueimagemesh
Commits
2a8ebe99
Commit
2a8ebe99
authored
1 year ago
by
CERUTTI Guillaume
Browse files
Options
Downloads
Patches
Plain Diff
ensure contiguous element ids after decimation...
parent
66ba60f8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#925782
failed
1 year ago
Stage: test
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/gnomon_package_tissueimagemesh/algorithm/meshFilter/surfaceCellMeshDecimation.py
+12
-0
12 additions, 0 deletions
...agemesh/algorithm/meshFilter/surfaceCellMeshDecimation.py
with
12 additions
and
0 deletions
src/gnomon_package_tissueimagemesh/algorithm/meshFilter/surfaceCellMeshDecimation.py
+
12
−
0
View file @
2a8ebe99
...
...
@@ -11,6 +11,9 @@ from gnomon.utils.decorators import meshInput, meshOutput
from
timagetk_geometry.image_surface.tissue_image_mesh
import
surface_tissue_mesh_collapse_same_label_edges
from
cellcomplex.property_topomesh.analysis
import
compute_topomesh_property
from
cellcomplex.property_topomesh.extraction
import
contiguous_wisps_topomesh
# {# gnomon, plugin.class
# do not modify, any code after the gnomon tag will be overwritten
...
...
@@ -41,6 +44,15 @@ class surfaceCellMeshDecimation(gnomon.core.gnomonAbstractMeshFilter):
in_surface_topomesh
)
surface_topomesh
=
contiguous_wisps_topomesh
(
surface_topomesh
)
compute_topomesh_property
(
surface_topomesh
,
'
vertices
'
,
1
)
compute_topomesh_property
(
surface_topomesh
,
'
length
'
,
1
)
compute_topomesh_property
(
surface_topomesh
,
'
borders
'
,
2
)
compute_topomesh_property
(
surface_topomesh
,
'
vertices
'
,
2
)
compute_topomesh_property
(
surface_topomesh
,
'
oriented_vertices
'
,
2
)
compute_topomesh_property
(
surface_topomesh
,
'
oriented_borders
'
,
3
)
print
(
surface_topomesh
.
nb_wisps
(
0
))
print
(
surface_topomesh
.
wisp_property
(
'
label
'
,
0
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment