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

Abstract base for all primitives and booleans. More...

#include <angelcad.h>

Inheritance diagram for shape:
shape2d solid circle difference2d fill2d hull2d intersection2d minkowski2d offset2d polygon projection2d rectangle square union2d cone cube cuboid cylinder difference3d hull3d intersection3d linear_extrude minkowski3d polyhedron rotate_extrude sphere sweep transform_extrude union3d

Public Member Functions

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

Abstract base for all primitives and booleans.

Member Function Documentation

◆ box()

boundingbox@ shape::box ( ) const

Return bounding box of object.

Returns
boundingbox@

◆ transform()

tmatrix@ shape::transform ( ) const

Return transformation matrix of object.

Returns
tmatrix@

◆ write_csg()

void shape::write_csg ( string  path)

Write object to OpenSCAD .csg file.

Parameters
pathstring

◆ write_xcsg()

void shape::write_xcsg ( string  path,
double  secant_tolerance = - 1.0 
)

Write object to .xcsg file for processing by xcsg program.

Parameters
pathstring
secant_tolerancedouble

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