Group Abstract Group Abstract

Message Boards Message Boards

0
|
3.1K Views
|
4 Replies
|
1 Total Like
View groups...
Share
Share this post:

Problem with RegionUnion function

POSTED BY: Marcelo Guzmán
4 Replies
Posted 3 years ago

Hi Marcelo,

I don't understand why it is cropped, but a simple workaround is

Region[RegionUnion @@ cylinders, PlotRange -> Full]
POSTED BY: Rohit Namjoshi
Posted 3 years ago

Values for upvec1,2,3 are missing. Can you please edit your question and add them.

POSTED BY: Rohit Namjoshi

Ah sorry for that, question updated.

POSTED BY: Marcelo Guzmán
Posted 3 years ago

How you go about this really depends on what you want to use the output for. I've found that the generic Region* functions have lots of problems with certain kinds of regions, especially if you want very accurate details. The Discretize* functions do better for most of my use cases. But again, it really depends on what you're going to do next.

Anyway, to just get a more accurate visualization of your system, you might try this:

DiscretizeRegion[RegionUnion @@ cylinders, MaxCellMeasure -> .0001]

As for "any insight" into why the generic Region cropped the visualization, I have no idea. That's the kind of stuff I've come to expect from Region* functions.

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