Skip to content

Commit f5056fa

Browse files
committed
Fixed bug in get_facet_vertices()
1 parent ef9bffc commit f5056fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ namespace OGF {
453453
NL::Vector* MeshGrobEditor::get_facet_pointers() const {
454454
// if facets are triangles, then facet pointers are implicit,
455455
// so we need to explicitize them
456-
if(mesh_grob()->cells.are_simplices()) {
456+
if(mesh_grob()->facets.are_simplices()) {
457457
NL::Vector* result = new NL::Vector(
458458
mesh_grob()->facets.nb()+1, 1, ogf_meta<index_t>::type()
459459
);
@@ -479,7 +479,7 @@ namespace OGF {
479479
return new NL::Vector(
480480
mesh_grob(),
481481
mesh_grob()->facet_corners.vertex_index_ptr(0),
482-
mesh_grob()->facets.nb(),
482+
mesh_grob()->facet_corners.nb(),
483483
1,
484484
ogf_meta<index_t>::type(),
485485
true

0 commit comments

Comments
 (0)