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

3d intersection boolean operation More...

#include <angelcad.h>

Inheritance diagram for intersection3d:
solid shape

Public Member Functions

 intersection3d (const solid@ s1, const solid@ s2)
 Compute boolean intersection between 2 objects. More...
 
 intersection3d (const solid@ s1, const solid@ s2, const solid@ s3)
 Compute boolean intersection between 3 objects. More...
 
 intersection3d (const solid@ s1, const solid@ s2, const solid@ s3, const solid@ s4)
 Compute boolean intersection between 4 objects. More...
 
 intersection3d (const solid@ s1, const solid@ s2, const solid@ s3, const solid@ s4, const solid@ s5)
 Compute boolean intersection between 5 objects. More...
 
 intersection3d (array< solid@>@ arr)
 Compute boolean intersection between all objects in the array. More...
 
- 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 intersection boolean operation

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

Constructor & Destructor Documentation

◆ intersection3d() [1/5]

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

Compute boolean intersection between 2 objects.

Parameters
s1solid@
s2solid@

◆ intersection3d() [2/5]

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

Compute boolean intersection between 3 objects.

Parameters
s1solid@
s2solid@
s3solid@

◆ intersection3d() [3/5]

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

Compute boolean intersection between 4 objects.

Parameters
s1solid@
s2solid@
s3solid@
s4solid@

◆ intersection3d() [4/5]

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

Compute boolean intersection between 5 objects.

Parameters
s1solid@
s2solid@
s3solid@
s4solid@
s5solid@

◆ intersection3d() [5/5]

intersection3d::intersection3d ( array< solid@>@  arr)

Compute boolean intersection between all objects in the array.

Parameters
arrarray@

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