Frustrum

Model ElementThe Frustumelement allows you to represent the portion of a cone that remains after its upper part has been cut off by a plane parallel to its base, or that is intercepted between two such planes.

Class Name

Frustum

Attribute Summary

Name Property Modifiable by command? Designable?
end_caps Enum ("OPEN CLOSE TOP_ONLY BOTTOM_ONLY") NO  
cm Reference(Marker) Yes
top Double() Yes
bottom Double() Yes
length Double() Yes
refinement_level Int()  
material_inside Bool ()  
color String()  

Usage

Frustum(curve=Marker(), top=120, bottom=50, length=200)

Attributes

end_caps
Enum()
This property allows you to control the appearance of the cylinder. Four options are available:
  • OPEN
  • CLOSED
  • TOP_ONLY
  • BOTTOM_ONLY
cm
Reference(Marker)
The marker is used as a coordinate system for the frustum graphic. It represents the center of the bottom circular section at the base of the frustum.
bottom
Double()
The radius of the bottom circle of the frustum graphic.
top
Double()
The radius of the top circle of the frustum graphic.
length
Double()
The length of the frustum graphic.
refinement_level
Int()
Specifies the level of detail of the frustum geometry. Default is 2.
material_inside
Specifies if the graphic has material inside or outside. material_inside is a boolean flag (TRUE/FALSE).
TRUE means the geometry is solid. In other words, it is filled with material and its exterior is devoid of material. Consequently, the surface normals of the geometry point outward.
FALSE means the converse: The exterior of the geometry is filled with material and the interior is devoid of material. In this case, the surface normals of the geometry point inward.
color
String()
The color of the graphic for H3D animation. Specified as RGB (Red : Green : Blue).

Example:

Define Frustum geometry
Frustum (cm=Marker(), top=120, bottom=50, length=200)

Comments

  1. See Properties for an explanation about what properties are, why they are used, and how you can extend these.