Message Boards Message Boards

0
|
1134 Views
|
4 Replies
|
8 Total Likes
View groups...
Share
Share this post:

Unexpected output of CSGRegion and RegionDifference?

The output of CSGRegion and RegionDifference in the attachment is wrong. What's wrong? Please enlighten me. thank you!

Attachments:
POSTED BY: Yu Chen
4 Replies

Many thanks to the Wolfram's team and their professional guidance! Through the following guidance, I once again felt the power of Wolfram Mathematica. I hope that I can use relevant research results to repay everyone's help in the near future.

POSTED BY: Yu Chen

Here is a suggested answer from Wolfram's team

Needs["NDSolve`FEM`"]
Needs["OpenCascadeLink`"]
cyl = OpenCascadeShape[Cylinder[{{-9, 0, 0}, {9, 0, 0}}, 7]];
dg = DiscretizeGraphics[ExampleData[{"Geometry3D", "SpaceShuttle"}]];
orbiter = OpenCascadeShape[ToBoundaryMesh[dg]];
shape = OpenCascadeShapeDifference[cyl, orbiter];
bmesh = OpenCascadeShapeSurfaceMeshToBoundaryMesh[shape];
bmesh["Wireframe"]
POSTED BY: EDITORIAL BOARD

Thanks! RegionDifference can only work with "basic" shapes?

POSTED BY: Yu Chen
Posted 7 months ago

CSRegion can only work with "basic" shapes. The supported shapes are listed in the documentation.

POSTED BY: Eric Rimbey
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract