-
Notifications
You must be signed in to change notification settings - Fork 5
cylinder
arnholm edited this page May 1, 2017
·
1 revision
A cylinder is defined by a positive radius and a positive height. The height direction is z. The cylinder extends from the origin towards positive z unless the “center” option is specified as true, in which case the cylinder geometric centre will coincide with the origin.
| Parameter name | Description | Status |
|---|---|---|
| r | Radius of cylinder | required |
| h | Height of cylinder | required |
| center | center on origin (true/false) | optional (default=false) |
Complete cylinder example
<?xml version="1.0" encoding="utf-8"?>
<xcsg version="1.0">
<cylinder h="40" r="15" center="false"/>
</xcsg>
Same example with center"true"
<?xml version="1.0" encoding="utf-8"?>
<xcsg version="1.0">
<cylinder h="40" r="15" center="true"/>
</xcsg>