Message Boards Message Boards

0
|
8355 Views
|
3 Replies
|
1 Total Likes
View groups...
Share
Share this post:
GROUPS:

How to add a Region to Graphics?

Posted 10 years ago
POSTED BY: Thomas Vogler
3 Replies
POSTED BY: Gianluca Gorni

Try this:

RegionDifference[Disk[{1, 0}, 1], Disk[{1.5`, 0}, 0.75`]];
R = DiscretizeRegion[%];
Graphics[{LightBlue, MeshPrimitives[R, 2], Orange, Circle[{1, 0}, 1], 
  Blue, Circle[{1.5`, 0}, 0.75`]}]

enter image description here

The MeshPrimitives will convert Discretized Regions into Graphics primitives.

You can get a handy little palette I did for the Geometry routines here:

Geometry Palette

Posted 10 years ago

Hello Thomas, I tried the following that can help, but it seems that the Head Graphics and the head RĂ©gion are conflicting.

DiscretizeRegion[ RegionUnion[Disk[{0, 0}, 1], RegionDifference[Disk[{1, 0}, 1], Disk[{1.5, 0}, 0.75]]]]

POSTED BY: Richard KAUSCH
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