AngelCAD  1.5-00
Public Member Functions | List of all members
union3d Class Reference

3d union boolean operation More...

#include <angelcad.h>

Inheritance diagram for union3d:
solid shape

Public Member Functions

 union3d (const solid@ s1, const solid@ s2)
 Compute union of 2 objects. More...
 
 union3d (const solid@ s1, const solid@ s2, const solid@ s3)
 Compute union of 3 objects. More...
 
 union3d (const solid@ s1, const solid@ s2, const solid@ s3, const solid@ s4)
 Compute union of 4 objects. More...
 
 union3d (const solid@ s1, const solid@ s2, const solid@ s3, const solid@ s4, const solid@ s5)
 Compute union of 5 objects. More...
 
 union3d (array< solid@>@ arr)
 
- Public Member Functions inherited from solid
solidopAdd (solid@ b)
 Boolean union operator+ overload. More...
 
solidopAnd (solid@ b)
 Boolean intersection operator& overload. More...
 
solidopMul (tmatrix@ matrix)
 Transform object by matrix multiplication: solid@ o2 = T * o1. More...
 
solidopSub (solid@ b)
 Boolean difference operator- overload. More...
 
- Public Member Functions inherited from shape
boundingboxbox () const
 Return bounding box of object. More...
 
tmatrixtransform () const
 Return transformation matrix of object. More...
 
void write_csg (string path)
 Write object to OpenSCAD .csg file. More...
 
void write_xcsg (string path, double secant_tolerance=- 1.0)
 Write object to .xcsg file for processing by xcsg program. More...
 

Detailed Description

3d union boolean operation

union3d is a 3-dimensional boolean operation. It can be invoked either
explicitly or using + operator:
explicit: solid@ object = union3d(sphere(100),translate(75,0,0)*sphere(50));
using & operator: solid@ object = sphere(100) + translate(75,0,0)*sphere(50);

Constructor & Destructor Documentation

◆ union3d() [1/5]

union3d::union3d ( const solid s1,
const solid s2 
)

Compute union of 2 objects.

Parameters
s1solid@, solid
s2solid@, solid

◆ union3d() [2/5]

union3d::union3d ( const solid s1,
const solid s2,
const solid s3 
)

Compute union of 3 objects.

Parameters
s1solid@, solid
s2solid@, solid
s3solid@, solid

◆ union3d() [3/5]

union3d::union3d ( const solid s1,
const solid s2,
const solid s3,
const solid s4 
)

Compute union of 4 objects.

Parameters
s1solid@, solid
s2solid@, solid
s3solid@, solid
s4solid@, solid

◆ union3d() [4/5]

union3d::union3d ( const solid s1,
const solid s2,
const solid s3,
const solid s4,
const solid s5 
)

Compute union of 5 objects.

Parameters
s1solid@, solid
s2solid@, solid
s3solid@, solid
s4solid@, solid
s5solid@, solid

◆ union3d() [5/5]

union3d::union3d ( array< solid@>@  arr)
Parameters
arrarray@

The documentation for this class was generated from the following file: