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

2d hull operation, enclosing the input shapes More...

#include <angelcad.h>

Inheritance diagram for hull2d:
shape2d shape

Public Member Functions

 hull2d (const shape2d@ s1, const shape2d@ s2)
 Compute 2d convex hull from 2 shapes. More...
 
 hull2d (const shape2d@ s1, const shape2d@ s2, const shape2d@ s3)
 Compute 2d convex hull from 3 shapes. More...
 
 hull2d (const shape2d@ s1, const shape2d@ s2, const shape2d@ s3, const shape2d@ s4)
 Compute 2d convex hull from 4 shapes. More...
 
 hull2d (const shape2d@ s1, const shape2d@ s2, const shape2d@ s3, const shape2d@ s4, const shape2d@ s5)
 Compute 2d convex hull from 5 shapes. More...
 
 hull2d (array< shape2d@>@ arr)
 Compute 2d convex hull from an array of 2d shapes. More...
 
- Public Member Functions inherited from shape2d
shape2dopAdd (shape2d@ b)
 Boolean union operator+ overload. More...
 
shape2dopAnd (shape2d@ b)
 Boolean intersection operator& overload. More...
 
shape2dopMul (tmatrix@ matrix)
 Transform object by matrix multiplication: shape2d@ o2 = T * o1. More...
 
shape2dopSub (shape2d@ 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

2d hull operation, enclosing the input shapes

hull2d is a 2-dimensional boolean operation. It encapsulates
the input objects with a convex shape. It can for example be used
to create a rectangle with rounded cornes using 4 circles.

Constructor & Destructor Documentation

◆ hull2d() [1/5]

hull2d::hull2d ( const shape2d s1,
const shape2d s2 
)

Compute 2d convex hull from 2 shapes.

Parameters
s1shape2d@, shape
s2shape2d@, shape

◆ hull2d() [2/5]

hull2d::hull2d ( const shape2d s1,
const shape2d s2,
const shape2d s3 
)

Compute 2d convex hull from 3 shapes.

Parameters
s1shape2d@, shape
s2shape2d@, shape
s3shape2d@, shape

◆ hull2d() [3/5]

hull2d::hull2d ( const shape2d s1,
const shape2d s2,
const shape2d s3,
const shape2d s4 
)

Compute 2d convex hull from 4 shapes.

Parameters
s1shape2d@, shape
s2shape2d@, shape
s3shape2d@, shape
s4shape2d@, shape

◆ hull2d() [4/5]

hull2d::hull2d ( const shape2d s1,
const shape2d s2,
const shape2d s3,
const shape2d s4,
const shape2d s5 
)

Compute 2d convex hull from 5 shapes.

Parameters
s1shape2d@, shape
s2shape2d@, shape
s3shape2d@, shape
s4shape2d@, shape
s5shape2d@, shape

◆ hull2d() [5/5]

hull2d::hull2d ( array< shape2d@>@  arr)

Compute 2d convex hull from an array of 2d shapes.

Parameters
arrarray@

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