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

Extrude 2d shape in z direction into 3d solid. More...

#include <angelcad.h>

Inheritance diagram for linear_extrude:
solid shape

Public Member Functions

 linear_extrude (const shape2d@ shape, double height)
 Compute linear extrusion of 2d shape. More...
 
double height () const
 extrusion height 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

Extrude 2d shape in z direction into 3d solid.

linear_extrude extrudes a 2d shape in z-direction, creating a solid.

Constructor & Destructor Documentation

◆ linear_extrude()

linear_extrude::linear_extrude ( const shape2d shape,
double  height 
)

Compute linear extrusion of 2d shape.

Parameters
shapeshape2d@, 2d profile to be extruded
heightdouble, distance in z direction to extrude

Member Function Documentation

◆ height()

double linear_extrude::height ( ) const

extrusion height

Returns
double, extrusion height

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