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

circle

A circle is defined by its radius. It is placed in the origin, unless explicitly transformed.

Parameter name Description Status
r Circle radius required

XML syntax for basic circle primitive (2d)

<circle r="10"/>

Complete example with a circle offset to x=20 and extruded to create a 3d solid

<?xml version="1.0" encoding="utf-8"?>
<xcsg version="1.0">
    <linear_extrude dz="1">
        <circle r="10">
            <tmatrix>
                <trow c0="1" c1="0" c2="0" c3="20"/>
                <trow c0="0" c1="1" c2="0" c3="0"/>
                <trow c0="0" c1="0" c2="1" c3="0"/>
                <trow c0="0" c1="0" c2="0" c3="1"/>
            </tmatrix>
        </circle>
    </linear_extrude>
</xcsg>

Clone this wiki locally