Skip to content

Commit

Permalink
Update FemMeshShapeNetgenObject.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
FEA-eng authored Mar 6, 2024
1 parent 289625e commit b0b83a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Mod/Fem/App/FemMeshShapeNetgenObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ const char* FinenessEnums[] =
FemMeshShapeNetgenObject::FemMeshShapeNetgenObject()
{
ADD_PROPERTY_TYPE(MaxSize, (1000), "MeshParams", Prop_None, "Maximum element size");
ADD_PROPERTY_TYPE(MinSize, (0), "MeshParams", Prop_None, "Minimum element size");
ADD_PROPERTY_TYPE(SecondOrder, (true), "MeshParams", Prop_None, "Create quadric elements");
ADD_PROPERTY_TYPE(Fineness, (2), "MeshParams", Prop_None, "Fineness level of the mesh");
Fineness.setEnums(FinenessEnums);

Check warning on line 59 in src/Mod/Fem/App/FemMeshShapeNetgenObject.cpp

View workflow job for this annotation

GitHub Actions / Lint / Lint

do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay]
Expand Down Expand Up @@ -95,6 +96,7 @@ App::DocumentObjectExecReturn* FemMeshShapeNetgenObject::execute()
NETGENPlugin_Hypothesis* tet = new NETGENPlugin_Hypothesis(0, 1, newMesh.getGenerator());
#endif
tet->SetMaxSize(MaxSize.getValue());
tet->SetMinSize(MinSize.getValue());
tet->SetSecondOrder(SecondOrder.getValue());
tet->SetOptimize(Optimize.getValue());
int iFineness = Fineness.getValue();
Expand Down

0 comments on commit b0b83a9

Please sign in to comment.