Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • $\begingroup$ Very nice. Any idea why OpenCascadeShapeChamfer fails when I construct my OpenCascadeShape this way? In[17]:= reg1 = BoundaryDiscretizeGraphics[ Text[Style["a", FontFamily -> "Helvetica"]], _Text]; mr = Region`Mesh`TriangulateMeshCells[ RegionBoundary[RegionProduct[reg1, Line[{{0.}, {1.}}]]], MaxCellMeasure -> \[Infinity]]; expr = OpenCascadeShape[ BoundaryMeshRegion[MeshCoordinates[mr], MeshCells[mr, 2]]]; OpenCascadeShapeChamfer[expr, 0.05] Out[20]= $Failed $\endgroup$ Commented 2 days ago
  • $\begingroup$ @GregHurst, I think that's because the boundary discretized graphics is bad and the reason why I had to resort to manually re-create the geometry. Even FindMeshDefects[mr] hangs. $\endgroup$ Commented 2 days ago
  • $\begingroup$ @user21 Thanks! It seems that the chamfer is not so robust. For the simple regular polygon,it work for n=70 but not for n=60 etc. Needs["OpenCascadeLink`"]; n = 70; pts = CirclePoints[n]; face = OpenCascadeShapeFace@OpenCascadeShape[Polygon[pts]]; shape = OpenCascadeShapeLinearSweep[face, {{0, 0, 0}, {0, 0, 1}}]; cham = OpenCascadeShapeChamfer[shape, .25]; OpenCascadeShapeSurfaceMeshToBoundaryMesh[cham] // BoundaryMeshRegion $\endgroup$ Commented yesterday