Skip to content
arnholm edited this page May 1, 2017 · 1 revision

cone

A cone is defined by two positive radii and a positive height. The height direction is z. The cone extends from the origin towards positive z unless the “center” option is specified as true, in which case the cone geometric centre will coincide with the origin.

Parameter name Description Status
r1 Radius of bottom circle section required
r2 Radius of top circle section required
h Height of cone required
center center on origin (true/false) optional (default=false)

Complete cone example

<?xml version="1.0" encoding="utf-8"?>
<xcsg version="1.0">
    <cone h="40" r1="20" r2="8" center="false"/>
</xcsg>

Same example with center"true"

<?xml version="1.0" encoding="utf-8"?>
<xcsg version="1.0">
    <cone h="40" r1="20" r2="8" center="true"/>
</xcsg>

Clone this wiki locally