'iso_rcsg.inc' - Rounded shape functions
The macros in this file are replacements for some shapes
in iso_csg.inc
with rounded edges.
For normal usage this does not make any difference so there is no need
to use this file in most cases, but it can be useful when working with
surface displacement, changed threshold
values or
when using the functions in patterns
.
This file overrides the definitions from iso_csg.inc
.
- Shape macros (rounded versions)
Description of the macros
The shape macros
IC_Box()
Rounded version of the IC_Box() macro
parameters:
Start, End:
the two corners of the box (vector)
example:
#declare fn_1 = IC_Box (<-0.8,-0.8,-0.8>, <0.8,0.8,0.8>)
IC_Cylinder()
Rounded version of the IC_Cylinder() macro
parameters:
Start, End:
start and end point of the cylinder axis (vector)Radius:
cylinder radius (float)
example:
#declare fn_1 = IC_Cylinder (-x, x, 0.8)
IC_Cone()
Rounded version of the IC_Cone() macro
parameters:
Start:
start point of the cone axis (vector)Radius1:
cone radius at start point (float)End:
end point of the cone axis (vector)Radius2:
cone radius at end point (float)
example:
#declare fn_1 = IC_Cone (-x, 0.2, x, 0.8)