Skip to contents

The union (OR) of two VMobject shapes. Produces the area covered by either shape. Requires the polyclip package.

Super classes

manimR::MObject -> manimR::VMobject -> Union

Methods

Inherited methods


Method new()

Create a union of two shapes

Usage

Union$new(
  vmobject1,
  vmobject2,
  color = WHITE,
  fill_color = NULL,
  fill_opacity = 0.5,
  precision = 30,
  ...
)

Arguments

vmobject1

First VMobject

vmobject2

Second VMobject

color

Stroke color

fill_color

Fill color

fill_opacity

Fill opacity

precision

Bezier sampling precision

...

Additional args


Method apply_polygon_result()

Apply polygon clipping result to this VMobject

Usage

Union$apply_polygon_result(polys)

Arguments

polys

List of polygon results from polyclip


Method clone()

The objects of this class are cloneable with this method.

Usage

Union$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.