Hello, the issue looks pure on gmsh side. OCCT team have no option to assist you with that issue.
Best regards, Commenter-1.
Archived discussion
I am trying to fuse two entities and to demonstrate the issue I am facing, here is a snippet that builds two rectangles (using points and lines) and then fuses them. Then I see a info message that
Info : Cannot bind existing OpenCASCADE curve 1 to second tag 15
Info : Could not preserve tag of 1D object 15 (->1)
import gmsh
import sys
gmsh.initialize()
gmsh.model.add("microch")
# Create Points
top_left = gmsh.model.occ.add_point(10, 5, 0, 1)
top_right = gmsh.model.occ.add_point(14, 5, 0, 2)
bottom_right = gmsh.model.occ.add_point(14, 0, 0, 3)
bottom_left = gmsh.model.occ.add_point(10, 0, 0, 4)
# Add lines
top = gmsh.model.occ.add_line(top_left, top_right, 1)
right = gmsh.model.occ.add_line(top_right, bottom_right, 2)
bottom = gmsh.model.occ.add_line(bottom_right, bottom_left, 3)
left = gmsh.model.occ.add_line(bottom_left, top_left, 4)
# Create Points
top_left_1 = gmsh.model.occ.add_point(10, 10, 0, 5)
top_right_1 = gmsh.model.occ.add_point(14, 10, 0, 6)
bottom_right_1 = gmsh.model.occ.add_point(14, 5, 0, 7)
bottom_left_1 = gmsh.model.occ.add_point(10, 5, 0, 8)
# Add lines
top_1 = gmsh.model.occ.add_line(top_left_1, top_right_1, 5)
right_1 = gmsh.model.occ.add_line(top_right_1, bottom_right_1, 6)
bottom_1 = gmsh.model.occ.add_line(bottom_right_1, bottom_left_1, 15)
left_1 = gmsh.model.occ.add_line(bottom_left_1, top_left_1, 8)
gmsh.model.occ.fuse([(1, top)],[(1, bottom_1)])
#
gmsh.model.occ.synchronize()
# Generate mesh
gmsh.model.mesh.generate(2)
# Run GUI if not in script mode
if "-nopopup" not in sys.argv:
gmsh.fltk.run()
gmsh.finalize()
Thank you!
Discussion
Posts are displayed in their archived order.
Hello, the issue looks pure on gmsh side. OCCT team have no option to assist you with that issue.
Best regards, Commenter-1.