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

Extrude 2d shape CCW in XZ plane into 3d solid. More...

#include <angelcad.h>

Inheritance diagram for rotate_extrude:
solid shape

Public Member Functions

 rotate_extrude (const shape2d@ shape, double deg, double pitch=0.0)
 Construct solid by rotating shape on positive x axis around y axis, counter-clockwise. More...
 
double deg () const
 extrusion angle in degrees More...
 
double rad () const
 extrusion angle in radians 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 CCW in XZ plane into 3d solid.

rotate_extrude allows extruding a 2d shape along a circular path. A positive
angle rotates the object around the y axis (CCW direction).
solid@ object = rotate_extrude(translate(100,0)*circle(10),deg:60);

Constructor & Destructor Documentation

◆ rotate_extrude()

rotate_extrude::rotate_extrude ( const shape2d shape,
double  deg,
double  pitch = 0.0 
)

Construct solid by rotating shape on positive x axis around y axis, counter-clockwise.

Parameters
shapeshape2d@, 2d profile shape to extrude
degdouble, rotation in degrees. Rotation is CCW around y axis.
pitchdouble, distance to offset profile in y direction for each revolution

Member Function Documentation

◆ deg()

double rotate_extrude::deg ( ) const

extrusion angle in degrees

Returns
double, extrusion angle in degrees

◆ rad()

double rotate_extrude::rad ( ) const

extrusion angle in radians

Returns
double, extrusion angle in radians

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