Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 2a8ebe99 authored by CERUTTI Guillaume's avatar CERUTTI Guillaume
Browse files

ensure contiguous element ids after decimation...

parent 66ba60f8
No related branches found
No related tags found
No related merge requests found
Pipeline #925782 failed
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment