Skip to content

Commit ef9bffc

Browse files
committed
get_triangles() is supposed to return a nfacetsx3 array !
1 parent 7adca29 commit ef9bffc

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/lib/OGF/mesh/interfaces/mesh_grob_editor_interface.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,16 @@ namespace OGF {
521521
return result;
522522
}
523523

524-
return get_facet_vertices();
524+
// return pointers to internal storage
525+
return new NL::Vector(
526+
mesh_grob(),
527+
mesh_grob()->facet_corners.vertex_index_ptr(0),
528+
mesh_grob()->facets.nb(),
529+
3,
530+
ogf_meta<index_t>::type(),
531+
true
532+
);
533+
525534
}
526535

527536
NL::Vector* MeshGrobEditor::get_triangle_adjacents() const {

0 commit comments

Comments
 (0)