Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
gmsh
gmsh
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 127
    • Issues 127
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 6
    • Merge Requests 6
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • gmsh
  • gmshgmsh
  • Issues
  • #1154

Closed
Open
Opened Jan 15, 2021 by Stephen Banks@banksey255

Call to gmsh/model/occ/fragment only returns highest dimensional resulting entities if tag >= 0 || !preserveNumbering

The returned outDimTags from calling gmsh/model/occ/fragments only includes the highest dimensional new shapes if tag > 0 or Geometry.OCCBooleanPreserveNumbering = 0, otherwise it includes all dimensional shapes. I think it is probably meant to always include all resulting entities.

This is due to the source code for OCC_Internals::booleanOperator (GModelIO_OCC.cpp) being as follows (I've used ellipsis to indicate irrelevant code to this discussion):

if(tag >= 0 || !preserveNumbering) { ... _multiBind(result, tag, outDimTags, true, true); ... } else { ... _multiBind(result, -1, outDimTags, false, true, true); ... }

I suspect both calls to _multiBind should have highestDimOnly = false, however it is only false in the else branch. I believe this is why the outDimTags only contains the highest dimensional entities in the (tag >= 0 || !preserveNumbering) branch. I'm not sure if this is intentional or not.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: gmsh/gmsh#1154