-
Notifications
You must be signed in to change notification settings - Fork 5
rectangle
arnholm edited this page May 1, 2017
·
1 revision
A rectangle is defined by its extents in x and y. It extends from the origin in x and y directons, unless the “center” option is specified, in which case the geometric centre of the rectangle will coincide with the origin.
| Parameter name | Description | Status |
|---|---|---|
| dx | Extent in x | required |
| dy | Extent in y | required |
| center | center on origin (true/false) | optional (default=false) |
XML syntax for basic rectangle primitive (2d)
<rectangle dx="20" dy="10" center="false"/>Complete example with a rectangle extruded to create a 3d solid
<?xml version="1.0" encoding="utf-8"?>
<xcsg version="1.0">
<linear_extrude dz="1">
<rectangle dx="20" dy="10" center="false"/>
</linear_extrude>
</xcsg>Rectangle with center="false"

Rectangle with center="true"
