<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.ldraw.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Swampkryakwa</id>
	<title>LDraw.org Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ldraw.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Swampkryakwa"/>
	<link rel="alternate" type="text/html" href="https://wiki.ldraw.org/wiki/Special:Contributions/Swampkryakwa"/>
	<updated>2026-04-05T21:20:28Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.ldraw.org/index.php?title=Primitives_Reference&amp;diff=6632</id>
		<title>Primitives Reference</title>
		<link rel="alternate" type="text/html" href="https://wiki.ldraw.org/index.php?title=Primitives_Reference&amp;diff=6632"/>
		<updated>2023-11-27T14:52:44Z</updated>

		<summary type="html">&lt;p&gt;Swampkryakwa: /* Test */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;LDraw Primitives Reference&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This page is a source of reference for the LDraw primitives in the \LDraw\p directory. Primitives are defined as highly re-usable components of LEGO parts modelled for LDraw.&lt;br /&gt;
They serve several purposes :&lt;br /&gt;
&lt;br /&gt;
    * To speed up parts authoring by providing a library of components which can be incorporated into several parts&lt;br /&gt;
    * To allow rendering software to make substitutions of curved components&lt;br /&gt;
&lt;br /&gt;
Within this reference material the available primitives are categorised into:&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
&lt;br /&gt;
Each section contains an overview of the characteristics common to all primitives within that category. Primitives are grouped into classes within each category - one class of primitive serving a similar purpose at different sizes or resolutions. For each class of primitive, a brief description of the purpose of the primitive is provided, with notes on its co-ordinate origin, default size and rules for scaling. A list of the available primitives is shown.&lt;br /&gt;
&lt;br /&gt;
An understanding of the orientation of the co-ordinate axes is essential for authoring a part for LDraw. For reference within this page the axes and their direction is shown in this diagram.&lt;br /&gt;
&lt;br /&gt;
[[File:Xyzaxes.png|thumb|alt=Axes]]&lt;br /&gt;
&lt;br /&gt;
==Rectilinear primitives==&lt;br /&gt;
&lt;br /&gt;
These rectilinear elements may be scaled in the {x}, {y} and {z} dimensions to make elements of any size. For example&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;1 16&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;0 0 0&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;40 0 0&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;0 1 0&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;0 0 20&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;rect.dat&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
would generate a 80LDu x 40LDu rectangle in the {x,z} plane.&lt;br /&gt;
&lt;br /&gt;
Although the default orientation of the rect.dat primitive is in the {x,z} plane the LDraw language allows for this to be transformed&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;1 16&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;0 0 0&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;0 1 0&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;40 0 0&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;0 0 20&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;rect.dat&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
would generate a 80LDu x 40LDu rectangle in the {y,z} plane.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;1 16&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;0 0 0&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;40 0 0&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;0 0 20&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;0 1 0&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;rect.dat&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
would generate a 80LDu x 40LDu rectangle in the {x,y} plane.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ &lt;br /&gt;
=== Two dimensional ===&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;rect.dat&#039;&#039;&#039; || &#039;&#039;&#039;Rectangle with all edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:rect.png|200px|thumb|alt=Rect]]&lt;br /&gt;
 || This primitive represents a rectangle in the {x,z} plane and the four edges that bound it. Its origin is at its centre and by default has a size of 2LDu in each of the {x} and {z} dimensions. To avoid matrix arithmetic problems in some renderers, the third dimension ({y} in the default orientation) must be given a non-zero scaling factor.&lt;br /&gt;
&lt;br /&gt;
1 16&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;0 0 0&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;5 0 0&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;0 1 0&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;0 0 20&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;rect.dat  &lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;rect3.dat&#039;&#039;&#039; || &#039;&#039;&#039;Rectangle with 3 edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:rect3.png|200px|thumb|alt=Rect3]]&lt;br /&gt;
|| This primitive represents a rectangle in the {x,z} plane but excludes one edge {-z}. Its origin is at its centre and by default has a size of 2LDu in each of the {x} and {z} dimensions. &lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;rect2p.dat&#039;&#039;&#039; || &#039;&#039;&#039;Rectangle with 2 parallel edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:rect2p.png|200px|thumb|alt=Rect2p]]&lt;br /&gt;
|| This primitive represents a rectangle in the {x,z} plane but excludes two parallel edges ({+x} and {-x}). Its origin is at its centre and by default has a size of 2LDu in each of the {x} and {z} dimensions. &lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;rect2a.dat&#039;&#039;&#039; || &#039;&#039;&#039;Rectangle with 2 adjacent edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:rect2a.png|200px|thumb|alt=Rect2a]]&lt;br /&gt;
|| This primitive represents a rectangle in the {x,z} plane but excludes two adjacent edges ({-x} and {-z}). Its origin is at its centre and by default has a size of 2LDu in each of the {x} and {z} dimensions. &lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;rect1.dat&#039;&#039;&#039; || &#039;&#039;&#039;Rectangle with 1 edge&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:rect1.png|200px|thumb|alt=Rect1]]&lt;br /&gt;
|| This primitive represents a rectangle in the {x,z} plane but include only the one {+x} edge. Its origin is at its centre and by default has a size of 2LDu in each of the {x} and {z} dimensions.  &lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;recte3.dat&#039;&#039;&#039; || &#039;&#039;&#039;Empty rectangle with three edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:recte3.png|200px|thumb|alt=Recte3]]&lt;br /&gt;
|| This primitive represents three edges of a rectangle in the {x,z} plane. Its origin is at its centre and by default has a size of 2LDu in each of the {x} and {z} dimensions. &lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;recte4.dat&#039;&#039;&#039; || &#039;&#039;&#039;Empty rectangle with all edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:recte4.png|200px|thumb|alt=Recte4]]&lt;br /&gt;
|| This primitive represents the four edges of a rectangle in the {x,z} plane. Its origin is at its centre and by default has a size of 2LDu in each of the {x} and {z} dimensions.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ &lt;br /&gt;
=== Three dimensional ===&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with all faces and edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box.png|200px|thumb|alt=Box]]&lt;br /&gt;
|| This primitive is used to define a cuboid. Its origin is the centre of the cuboid and by default has a size of 2LDu in each of the three dimensions.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box5.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 5 faces and all edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box5.png|200px|thumb|alt=Box5]]&lt;br /&gt;
|| This primitive represents a cuboid missing the top {-y} face. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x} and {z} dimensions and 1LDu in the {y} dimension.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box5-1.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 5 faces without 1 edge&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box5-1.png|200px|thumb|alt=Box5-1]]&lt;br /&gt;
|| This primitive represents a cuboid missing the top {-y} face and one edge {-z} of that. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x} and {z} dimensions and 1LDu in the {y} dimension.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box5-2p.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 5 faces without 2 parallel edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box5-2p.png|200px|thumb|alt=Box5-2p]]&lt;br /&gt;
|| This primitive represents a cuboid missing the top {-y} face and two of the four edges surrounding that. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x} and {z} dimensions and 1LDu in the {y} dimension.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box5-4a.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 5 faces without top edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box5-4a.png|200px|thumb|alt=Box5-4a]]&lt;br /&gt;
|| This primitive represents a cuboid missing the top {-y} face and the four edges surrounding that. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x} and {z} dimensions and 1LDu in the {y} dimension.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box5-12.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 5 faces missing all edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box5-12.png|200px|thumb|alt=Box5-12]]&lt;br /&gt;
|| This primitive represents a cuboid missing the top {-y} face and all edges. Its primary use is for sticker parts. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x} and {z} dimensions and 1LDu in the {y} dimension.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box4.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 4 parallel faces and all edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box4.png|200px|thumb|alt=Box4]]&lt;br /&gt;
|| This primitive represents a cuboid missing the top {-y} and bottom {+y} faces. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x} and {z} dimensions and 1LDu in the {y} dimension.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box4o4a.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 4 parallel faces without bottom edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box4o4a.png|200px|thumb|alt=Box4o4a]]&lt;br /&gt;
||This primitive represents a cuboid missing the top {-y} and bottom {+y} faces, and missing the edges of the bottom face. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x} and {z} dimensions and 1LDu in the {y} dimension.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box4o8a.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 4 parallel faces without top and bottom edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box4o8a.png|200px|thumb|alt=Box4o8a]]&lt;br /&gt;
|| This primitive represents a cuboid missing the top {-y} and bottom {+y} faces, and missing the edges of the top and bottom face. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x} and {z} dimensions and 1LDu in the {y} dimension.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box4t.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 4 adjacent and all edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box4t.png|200px|thumb|alt=Box4t]]&lt;br /&gt;
|| This primitive represents a cuboid missing the top {-y} and front {-z} faces, but with all its edges. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x} and {z} dimensions and 1LDu in the {y} dimension.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box4-1.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 4 adjacent faces missing 1 edge&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box4-1.png|200px|thumb|alt=Box4-1]]&lt;br /&gt;
||This primitive represents a cuboid missing the top {-y} and front {-z} faces and the edge between those faces. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x} and {z} dimensions and 1LDu in the {y} dimension.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box4-2p.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 4 faces without two opposite top edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box4-2p.png|200px|thumb|alt=Box4-2p]]&lt;br /&gt;
|| This primitive represents a cuboid missing the top {-y} and bottom {+y} faces, and missing two edges of the top face - the intersection of the two missing faces and the opposite edge. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x} and {z} dimensions and 1LDu in the {y} dimension.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box4-3p.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 4 faces without three parallel edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box4-3p.png|200px|thumb|alt=Box4-3p]]&lt;br /&gt;
|| This primitive represents a cuboid missing the top {-y} and bottom {+y} faces, and missing three edges of the missing faces. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x} and {z} dimensions and 1LDu in the {y} dimension.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box4-4a.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 4 adjacent faces missing 4 edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box4-4a.png|200px|thumb|alt=Box4-4a]]&lt;br /&gt;
||This primitive represents a cuboid missing the top {-y} and front {-z} faces and all the edges of the missing front face. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x} and {z} dimensions and 1LDu in the {y} dimension.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box4-7a.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 4 adjacent faces missing 7 edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box4-7a.png|200px|thumb|alt=Box4-7a]]&lt;br /&gt;
||This primitive represents a cuboid missing the top {-y} and front {-z} faces and all the edges of both missing faces. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x} and {z} dimensions and 1LDu in the {y} dimension.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box3-3.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 3 adjacent faces missing 3 edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box3-3.png|200px|thumb|alt=Box3-3]]&lt;br /&gt;
|| This primitive represents a cuboid missing the top {-y} and bottom {+y} faces, and missing three edges of the missing faces. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x} and {z} dimensions and 1LDu in the {y} dimension.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box3-5a.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 4 adjacent faces missing 4 edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box3-5a.png|200px|thumb|alt=Box3-5a]]&lt;br /&gt;
|| This primitive represents a cuboid missing the top {-y}, front {-z} and left {-x} faces and includes the three internal edges and the outer edges except those on the left {-z}. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x}, {y} and {z} dimensions.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box3-7a.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 3 adjacent faces missing 7 adjacent edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box3-7a.png|200px|thumb|alt=Box3-7a]]&lt;br /&gt;
|| This primitive represents a cuboid missing the top {-y}, front {-z} and left {-x} faces and includes the three internal edges but only the outer edges at the top (-y). Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x}, {y} and {z} dimensions.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box3-9a.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 3 adjacent faces missing 9 adjacent edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box3-9a.png|200px|thumb|alt=Box3-9a]]&lt;br /&gt;
|| This primitive represents a cuboid missing the top {-y}, front {-z} and left {-x} faces and includes only the three internal edges. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x}, {y} and {z} dimensions.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box3-12.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 3 adjacent faces missing all edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box3-12.png|200px|thumb|alt=Box3-12]]&lt;br /&gt;
|| This primitive represents a cuboid missing the top {-y}, front {-z} and left {-x} faces but excludes all edges. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x}, {y} and {z} dimensions.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Swampkryakwa</name></author>
	</entry>
	<entry>
		<id>https://wiki.ldraw.org/index.php?title=Primitives_Reference&amp;diff=6631</id>
		<title>Primitives Reference</title>
		<link rel="alternate" type="text/html" href="https://wiki.ldraw.org/index.php?title=Primitives_Reference&amp;diff=6631"/>
		<updated>2023-11-27T14:52:34Z</updated>

		<summary type="html">&lt;p&gt;Swampkryakwa: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;LDraw Primitives Reference&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This page is a source of reference for the LDraw primitives in the \LDraw\p directory. Primitives are defined as highly re-usable components of LEGO parts modelled for LDraw.&lt;br /&gt;
They serve several purposes :&lt;br /&gt;
&lt;br /&gt;
    * To speed up parts authoring by providing a library of components which can be incorporated into several parts&lt;br /&gt;
    * To allow rendering software to make substitutions of curved components&lt;br /&gt;
&lt;br /&gt;
Within this reference material the available primitives are categorised into:&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
&lt;br /&gt;
Each section contains an overview of the characteristics common to all primitives within that category. Primitives are grouped into classes within each category - one class of primitive serving a similar purpose at different sizes or resolutions. For each class of primitive, a brief description of the purpose of the primitive is provided, with notes on its co-ordinate origin, default size and rules for scaling. A list of the available primitives is shown.&lt;br /&gt;
&lt;br /&gt;
An understanding of the orientation of the co-ordinate axes is essential for authoring a part for LDraw. For reference within this page the axes and their direction is shown in this diagram.&lt;br /&gt;
&lt;br /&gt;
[[File:Xyzaxes.png|thumb|alt=Axes]]&lt;br /&gt;
&lt;br /&gt;
==Rectilinear primitives==&lt;br /&gt;
&lt;br /&gt;
These rectilinear elements may be scaled in the {x}, {y} and {z} dimensions to make elements of any size. For example&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;1 16&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;0 0 0&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;40 0 0&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;0 1 0&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;0 0 20&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;rect.dat&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
would generate a 80LDu x 40LDu rectangle in the {x,z} plane.&lt;br /&gt;
&lt;br /&gt;
Although the default orientation of the rect.dat primitive is in the {x,z} plane the LDraw language allows for this to be transformed&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;1 16&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;0 0 0&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;0 1 0&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;40 0 0&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;0 0 20&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;rect.dat&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
would generate a 80LDu x 40LDu rectangle in the {y,z} plane.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;1 16&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;0 0 0&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;40 0 0&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;0 0 20&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;0 1 0&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;rect.dat&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
would generate a 80LDu x 40LDu rectangle in the {x,y} plane.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ &lt;br /&gt;
=== Two dimensional ===&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;rect.dat&#039;&#039;&#039; || &#039;&#039;&#039;Rectangle with all edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:rect.png|200px|thumb|alt=Rect]]&lt;br /&gt;
 || This primitive represents a rectangle in the {x,z} plane and the four edges that bound it. Its origin is at its centre and by default has a size of 2LDu in each of the {x} and {z} dimensions. To avoid matrix arithmetic problems in some renderers, the third dimension ({y} in the default orientation) must be given a non-zero scaling factor.&lt;br /&gt;
&lt;br /&gt;
1 16&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;0 0 0&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;5 0 0&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;0 1 0&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;0 0 20&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;rect.dat  &lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;rect3.dat&#039;&#039;&#039; || &#039;&#039;&#039;Rectangle with 3 edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:rect3.png|200px|thumb|alt=Rect3]]&lt;br /&gt;
|| This primitive represents a rectangle in the {x,z} plane but excludes one edge {-z}. Its origin is at its centre and by default has a size of 2LDu in each of the {x} and {z} dimensions. &lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;rect2p.dat&#039;&#039;&#039; || &#039;&#039;&#039;Rectangle with 2 parallel edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:rect2p.png|200px|thumb|alt=Rect2p]]&lt;br /&gt;
|| This primitive represents a rectangle in the {x,z} plane but excludes two parallel edges ({+x} and {-x}). Its origin is at its centre and by default has a size of 2LDu in each of the {x} and {z} dimensions. &lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;rect2a.dat&#039;&#039;&#039; || &#039;&#039;&#039;Rectangle with 2 adjacent edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:rect2a.png|200px|thumb|alt=Rect2a]]&lt;br /&gt;
|| This primitive represents a rectangle in the {x,z} plane but excludes two adjacent edges ({-x} and {-z}). Its origin is at its centre and by default has a size of 2LDu in each of the {x} and {z} dimensions. &lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;rect1.dat&#039;&#039;&#039; || &#039;&#039;&#039;Rectangle with 1 edge&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:rect1.png|200px|thumb|alt=Rect1]]&lt;br /&gt;
|| This primitive represents a rectangle in the {x,z} plane but include only the one {+x} edge. Its origin is at its centre and by default has a size of 2LDu in each of the {x} and {z} dimensions.  &lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;recte3.dat&#039;&#039;&#039; || &#039;&#039;&#039;Empty rectangle with three edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:recte3.png|200px|thumb|alt=Recte3]]&lt;br /&gt;
|| This primitive represents three edges of a rectangle in the {x,z} plane. Its origin is at its centre and by default has a size of 2LDu in each of the {x} and {z} dimensions. &lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;recte4.dat&#039;&#039;&#039; || &#039;&#039;&#039;Empty rectangle with all edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:recte4.png|200px|thumb|alt=Recte4]]&lt;br /&gt;
|| This primitive represents the four edges of a rectangle in the {x,z} plane. Its origin is at its centre and by default has a size of 2LDu in each of the {x} and {z} dimensions.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ &lt;br /&gt;
=== Three dimensional ===&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with all faces and edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box.png|200px|thumb|alt=Box]]&lt;br /&gt;
|| This primitive is used to define a cuboid. Its origin is the centre of the cuboid and by default has a size of 2LDu in each of the three dimensions.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box5.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 5 faces and all edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box5.png|200px|thumb|alt=Box5]]&lt;br /&gt;
|| This primitive represents a cuboid missing the top {-y} face. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x} and {z} dimensions and 1LDu in the {y} dimension.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box5-1.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 5 faces without 1 edge&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box5-1.png|200px|thumb|alt=Box5-1]]&lt;br /&gt;
|| This primitive represents a cuboid missing the top {-y} face and one edge {-z} of that. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x} and {z} dimensions and 1LDu in the {y} dimension.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box5-2p.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 5 faces without 2 parallel edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box5-2p.png|200px|thumb|alt=Box5-2p]]&lt;br /&gt;
|| This primitive represents a cuboid missing the top {-y} face and two of the four edges surrounding that. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x} and {z} dimensions and 1LDu in the {y} dimension.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box5-4a.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 5 faces without top edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box5-4a.png|200px|thumb|alt=Box5-4a]]&lt;br /&gt;
|| This primitive represents a cuboid missing the top {-y} face and the four edges surrounding that. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x} and {z} dimensions and 1LDu in the {y} dimension.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box5-12.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 5 faces missing all edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box5-12.png|200px|thumb|alt=Box5-12]]&lt;br /&gt;
|| This primitive represents a cuboid missing the top {-y} face and all edges. Its primary use is for sticker parts. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x} and {z} dimensions and 1LDu in the {y} dimension.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box4.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 4 parallel faces and all edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box4.png|200px|thumb|alt=Box4]]&lt;br /&gt;
|| This primitive represents a cuboid missing the top {-y} and bottom {+y} faces. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x} and {z} dimensions and 1LDu in the {y} dimension.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box4o4a.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 4 parallel faces without bottom edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box4o4a.png|200px|thumb|alt=Box4o4a]]&lt;br /&gt;
||This primitive represents a cuboid missing the top {-y} and bottom {+y} faces, and missing the edges of the bottom face. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x} and {z} dimensions and 1LDu in the {y} dimension.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box4o8a.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 4 parallel faces without top and bottom edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box4o8a.png|200px|thumb|alt=Box4o8a]]&lt;br /&gt;
|| This primitive represents a cuboid missing the top {-y} and bottom {+y} faces, and missing the edges of the top and bottom face. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x} and {z} dimensions and 1LDu in the {y} dimension.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box4t.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 4 adjacent and all edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box4t.png|200px|thumb|alt=Box4t]]&lt;br /&gt;
|| This primitive represents a cuboid missing the top {-y} and front {-z} faces, but with all its edges. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x} and {z} dimensions and 1LDu in the {y} dimension.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box4-1.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 4 adjacent faces missing 1 edge&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box4-1.png|200px|thumb|alt=Box4-1]]&lt;br /&gt;
||This primitive represents a cuboid missing the top {-y} and front {-z} faces and the edge between those faces. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x} and {z} dimensions and 1LDu in the {y} dimension.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box4-2p.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 4 faces without two opposite top edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box4-2p.png|200px|thumb|alt=Box4-2p]]&lt;br /&gt;
|| This primitive represents a cuboid missing the top {-y} and bottom {+y} faces, and missing two edges of the top face - the intersection of the two missing faces and the opposite edge. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x} and {z} dimensions and 1LDu in the {y} dimension.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box4-3p.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 4 faces without three parallel edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box4-3p.png|200px|thumb|alt=Box4-3p]]&lt;br /&gt;
|| This primitive represents a cuboid missing the top {-y} and bottom {+y} faces, and missing three edges of the missing faces. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x} and {z} dimensions and 1LDu in the {y} dimension.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box4-4a.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 4 adjacent faces missing 4 edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box4-4a.png|200px|thumb|alt=Box4-4a]]&lt;br /&gt;
||This primitive represents a cuboid missing the top {-y} and front {-z} faces and all the edges of the missing front face. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x} and {z} dimensions and 1LDu in the {y} dimension.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box4-7a.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 4 adjacent faces missing 7 edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box4-7a.png|200px|thumb|alt=Box4-7a]]&lt;br /&gt;
||This primitive represents a cuboid missing the top {-y} and front {-z} faces and all the edges of both missing faces. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x} and {z} dimensions and 1LDu in the {y} dimension.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box3-3.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 3 adjacent faces missing 3 edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box3-3.png|200px|thumb|alt=Box3-3]]&lt;br /&gt;
|| This primitive represents a cuboid missing the top {-y} and bottom {+y} faces, and missing three edges of the missing faces. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x} and {z} dimensions and 1LDu in the {y} dimension.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box3-5a.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 4 adjacent faces missing 4 edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box3-5a.png|200px|thumb|alt=Box3-5a]]&lt;br /&gt;
|| This primitive represents a cuboid missing the top {-y}, front {-z} and left {-x} faces and includes the three internal edges and the outer edges except those on the left {-z}. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x}, {y} and {z} dimensions.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box3-7a.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 3 adjacent faces missing 7 adjacent edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box3-7a.png|200px|thumb|alt=Box3-7a]]&lt;br /&gt;
|| This primitive represents a cuboid missing the top {-y}, front {-z} and left {-x} faces and includes the three internal edges but only the outer edges at the top (-y). Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x}, {y} and {z} dimensions.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box3-9a.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 3 adjacent faces missing 9 adjacent edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box3-9a.png|200px|thumb|alt=Box3-9a]]&lt;br /&gt;
|| This primitive represents a cuboid missing the top {-y}, front {-z} and left {-x} faces and includes only the three internal edges. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x}, {y} and {z} dimensions.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;box3-12.dat&#039;&#039;&#039; || &#039;&#039;&#039;Cuboid with 3 adjacent faces missing all edges&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:box3-12.png|200px|thumb|alt=Box3-12]]&lt;br /&gt;
|| This primitive represents a cuboid missing the top {-y}, front {-z} and left {-x} faces but excludes all edges. Its origin is the centre of the (missing) top face and by default has a size of 2LDu in each of the {x}, {y} and {z} dimensions.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Test==&lt;/div&gt;</summary>
		<author><name>Swampkryakwa</name></author>
	</entry>
</feed>