5
$\begingroup$

I can do:

Region[Line[{{0, 0}, {1, 0}}]] 

And I can do:

Region[Circle[{1, 0.5`}, 0.5`, {-90 \[Degree], 90 \[Degree]}]] 

Can I combine those into one region? Something like:

Region[{Line[{{0, 0}, {1, 0}}] ,Circle[{1, 0.5`}, 0.5`, {-90 \[Degree], 90 \[Degree]}]}] 
$\endgroup$
1
  • 1
    $\begingroup$ RegionUnion? $\endgroup$ Commented Jul 17, 2019 at 19:12

1 Answer 1

6
$\begingroup$

RegionUnion gives the union of the regions

r1 = Region[Line[{{0, 0}, {1, 0}}]]; r2 = Region[Circle[{1, 1/2}, 1/2, {-π/2, π/2}]]; RegionUnion[r1, r2] 

enter image description here

From Mathematica 10 onwards there is a set of function for Derived Geometric Regions providing several ways of deriving new regions from existing ones, including combining them through Boolean operations and transforming them through a mapping.

$\endgroup$

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.