Round_Pyramid_N_out
Round_Pyramid_N column
Round_Pyramid wireframe
Round_Pyramid wireframe
Round_Pyramid wireframe
Round_N_Pyramid filled
... truncated
... merge
|
Round_Pyramid_N_out
Rounded pyramid from A to B with N edges defined
by circumcircle radii (distance center to corners).
general syntax:
object{ Round_Pyramid_N_out( N,
Point_A, R_out_A,
Point_B, R_out_B,
R_Border,
Fill_On, Merge_On
) //----------------
texture{ ... ... }
} // end of object -------- |
Round_Pyramid_N_in
Rounded pyramid from A to B with N edges defined
by incircle radii (distance center to faces).
general syntax:
object{ Round_Pyramid_N_in( N,
Point_A, R_in_A,
Point_B, R_in_B,
R_Border,
Fill_On, Merge_On
) //-------ö---------
texture{ ... ... }
} // end of object -------- |
N >2 = the number of edges,
Point_A, R_out_A = Point A, circumcircle radius at A,
Point_B, R_out_B = Point B, circumcircle radius at B,
Point_A, R_in_A = Point A, incircle radius at A,
Point_B, R_in_B = Point B, incircle radius at B,
R_Border = the radius of the edges,
Fill_On = 0 = Wire_N_Pyramid, 1 = filled shape.
Merge_On = 1 = merges the elements of the pyramid
for using transparent material.
Example:
#include "shapes3.inc"
object{ Round_Pyramid_N_out(
8 , // number of side faces
<-0.25,0.35,-0.8>, 0.40,// A, R_out_A,
<1,1.1,0>, 0.70,// B, R_out_B,
0.08, // border radius
1, // 1 = filled, 0 = wire
0 // 0 = union, 1 = merge
) //-------------------------------------
texture{ pigment{ rgb<1,1,1> }
finish { phong 1 }
} // end of texture --------------
} // end of object //---------------------- |
Example:
#include "shapes_lo.inc"
object{ Round_Pyramid_N_in(
5 , // number of side faces
<0,0.00,0>, 1.00, <0,1.25,0>, 0.00,
0.05, // border radius
0, // 1 = filled, 0 = wire
0 // 0 = union, 1 = merge
) //-------------------------------------
texture{ pigment{ color rgb<1,1,1>}
finish { phong 1}
} // end of texture
} // end of object ------------------------ |
|