Timeline for answer to Combining 3D-text (extruded 2D-font) and a simple solid: RegionProduct produces invalid BoundaryMeshRegion by cvgmt
Current License: CC BY-SA 4.0
Post Revisions
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 12, 2024 at 14:34 | comment | added | user21 | @cvgmt, you are ahead of time ;-) | |
| Apr 12, 2024 at 14:01 | history | edited | cvgmt | CC BY-SA 4.0 |
added 698 characters in body
|
| Feb 29, 2024 at 7:12 | comment | added | user21 |
In the next version (or if you get OpenCascadeLink from github) you will be able to directly use the 2D: ocPoly = OpenCascadeShape[poly]; extrudePoly = OpenCascadeShapeLinearSweep[ocPoly, {{0, 0, 0}, {0, 0, 3}}]; ocChar = OpenCascadeShape[regText2D]; ocChar = OpenCascadeShapeTransformation[ocChar, TranslationTransform[{0, 0, 2}]]; extrudeChar = OpenCascadeShapeLinearSweep[ocChar, {{0, 0, 2}, {0, 0, 3}}]; shape = OpenCascadeShapeDifference[extrudePoly, extrudeChar];(bmesh = OpenCascadeShapeSurfaceMeshToBoundaryMesh[shape])["Wireframe"]
|
|
| Feb 26, 2024 at 9:01 | vote | accept | Felix Kasza | ||
| Feb 26, 2024 at 9:01 | comment | added | Felix Kasza | @cvgmt user21 – Once again, I cannot thank you enough! | |
| Feb 26, 2024 at 6:23 | comment | added | user21 | if you have other use cases that you think would be useful, please let me know. Also, the new code is already available if you want to play with it. github.com/WolframResearch/OpenCascadeLink | |
| Feb 26, 2024 at 6:20 | comment | added | cvgmt | @user21 Good news! | |
| Feb 26, 2024 at 6:18 | comment | added | user21 |
A different approach would to use line = RegionBoundary[poly] /. {x_?NumericQ, y_} :> {x, y, 0.}; ocline = OpenCascadeShape[line]; extrudeLine = OpenCascadeShapeLinearSweep[ocline, {{0, 0, 0}, {0, 0, 3}}];. In the next version it will be much easier to convert 2D graphics primitives to OpenCascade shapes. Then we no longer need the {x_?NumericQ, y_} :> {x, y, 0.}
|
|
| Feb 26, 2024 at 1:10 | history | edited | cvgmt | CC BY-SA 4.0 |
added 3 characters in body
|
| Feb 26, 2024 at 0:12 | history | answered | cvgmt | CC BY-SA 4.0 |