Questions tagged [opencascade]
The opencascade tag has no summary.
54 questions
6
votes
3
answers
327
views
How can I get the chamfer of the 3D font and make a BoundaryMeshRegion?
The desire font as in the document which could be found by FindShortestCurve -> Scope -> Mesh Region -> the last example
https://reference.wolfram.com/language/ref/FindShortestCurve.html#...
3
votes
1
answer
132
views
Problem with IncludePoints in ToElement Mesh
In a finite element code I whish to use "IncludePoints" in ToElementMesh and I get a failure. Here is a minimum ...
2
votes
0
answers
182
views
The OpenCascadeShapeLinearSweep seems could not sweep the polygon from one point to another point
When we set direction = {{0,0,0}, {0,0,3}};, we could moving the polygon along the direction {0,0,1} and the polygon moving from ...
1
vote
1
answer
138
views
RegionUnion Volume returns undefined
I am trying to calculate the volume of a structure made by RegionUnion. Here is the structure
...
3
votes
3
answers
328
views
How to discretize space polygon with hole?
Fixed before version 14.3.0.
When we using Polygon[{p1, p2, ..., pn} -> {q1, q2, ..., qn}] to draw a space polygon with hole, it seems that ...
3
votes
1
answer
171
views
RegionDifference - the command does not work as shown in the help - example
Colleagues, good morning.
Unfortunately, while solving my problem, I ran into a problem that stopped my project completely. RegionDifference command does not work as shown in the help topic.
All ...
6
votes
1
answer
574
views
How can I color a cylinder inside a sphere?
I am trying to draw a figure and color it like this from here:
I tried
CSGRegion["Difference", {Ball[{0, 0, 0}, 5], Cylinder[{{0, 0, -5}, {0, 0, 5}}, 2]}]
...
17
votes
3
answers
764
views
How can we dice a parametric surface?
A few days ago I asked how to slice three-dimensional surfaces:
How can we produce sliceforms?
The three outstanding answers make me believe that dicing parametric surfaces should also be possible. ...
6
votes
1
answer
317
views
Continuously vary tube radius of parametricPlot3D depending on distance from origin
I'm doing a project trying to 3D print the stereographic projections of 4D shapes, and I need it so that the lines are thinner towards the origin for structural reasons. I've written functions to do ...
10
votes
1
answer
384
views
Kernel crash during RegionDifference of complex 3D meshes + BoundaryMeshRegion::bsuncl error
I'm modeling a screw rotor with cavities (for CAD/CFD analysis). The workflow involves:
Generating the rotor body from 5 parametric surfaces.
Creating cavity profiles from 4 extruded segments.
...
5
votes
2
answers
417
views
How to combine several surfaces into a solid and compute its volume?
plot1 is taken from the BSplineSurface document. I add two Disk ...
0
votes
1
answer
128
views
Why can't OpenCascadeLink dll be loaded?
I am running MMA 14.2.1.0 on Win 11. Needs["OpenCascadeLink`"] executes. But when I try to use OpenCascadeShapeImport I get this error:
LibraryFunction::load: The library C:\Program Files\...
6
votes
1
answer
267
views
RegionIntersection not work, only outputs BooleanRegion Object
This is an example to make Pi in 3D dimension
Thanks @xzczd for providing the fast version. Link Smoothing the Region?
...
5
votes
1
answer
189
views
*.STL files from using IMPORT command are not passing SolidRegionQ test
My goal is to create models in CAD or similar software and importing into MMA for analysis. I have created *.STL files using Blender, FREECAD, GMSH, etc.. none of them pass the SolidRegionQ test to ...
6
votes
1
answer
681
views
How can I draw Union of two cylinders like this?
I am trying to draw this picture
I tried
CSGRegion["Union", {Cylinder[{{-50, 0, 0}, {50, 0, 0}}, 20], Cylinder[{{0, -50, 0}, {0, 50, 0}}, 20]}]