Skip to content
Snippets Groups Projects
Select Git revision
0 results

GenApi.py

Blame
  • Forked from gmsh / gmsh
    Source project has a limited visibility.
    • Christophe Geuzaine's avatar
      af8b0067
      API change: replaced setNodes/setElements by addNodes/addElements + added · af8b0067
      Christophe Geuzaine authored
      new mesh::clear()
      
      Rationale: setNodes/setElements were intrinsically a bad design choice,
      as these functions had to delete nodes and/or elements before storing the
      new ones. Using these functions in the wrong way could lead to an invalid
      mesh, with elements pointing to nodes that were deleted (in an adjacent
      entity).
      
      The only viable workflow is to delete the mesh (with the new clear()
      function), before adding nodes/elements.
      af8b0067
      History
      API change: replaced setNodes/setElements by addNodes/addElements + added
      Christophe Geuzaine authored
      new mesh::clear()
      
      Rationale: setNodes/setElements were intrinsically a bad design choice,
      as these functions had to delete nodes and/or elements before storing the
      new ones. Using these functions in the wrong way could lead to an invalid
      mesh, with elements pointing to nodes that were deleted (in an adjacent
      entity).
      
      The only viable workflow is to delete the mesh (with the new clear()
      function), before adding nodes/elements.