HC_Insert_Sphere
-
Key
HC_Insert_Sphere(Point const *center, double radius, Vector const *axis, Vector const *ortho) - Key HC_Insert_Sphere(Point const center, double radius, Vector const axis, Vector const ortho)
Generates a sphere.
The sphere primitive is tesselated at draw time which can greatly reduce the memory footprint of an application in which spheres are widely used. The tesselation of the sphere is controlled by the “sphere” option within the “tesselation” rendering option.
HC_Insert_Circle, HC_Insert_Ellipse, HC_Insert_Circular_Arc, HC_Insert_Circular_Chord, HC_Insert_Circular_Wedge, HC_Insert_Elliptical_Arc, HC_Insert_Polygon, HC_Set_Visibility, HC_Set_Edge_Pattern, HC_Set_Edge_Weight, HC_Set_Face_Pattern, HC_Set_Color, HC_Renumber_Key.Parameters
center: An x-y-z triplet for the coordinates of center the sphere. (A simple array of three elements may also be used in most languages.) Passed by reference always.
radius: Length of the radius of the sphere.
axis: Vector that points in the longtitudal/vertical direction. If null then a default value of <0,10,0> is applied.
ortho: Vector that points in the latitudal/horizontal direction. If null then a default value of <1,0,0> is applied.
Returns
The key to the inserted geometry, or -1 if an error occurred.