Subject:
|
SVG (was Re: Web-based LDraw viewing)
|
Newsgroups:
|
lugnet.cad.dev
|
Date:
|
Sun, 14 Mar 2004 02:50:47 GMT
|
Viewed:
|
1555 times
|
| |
![Post a public reply to this message](/news/icon-reply.gif) | |
Here's an example (it even does some primitive substitution):
<?xml version="1.0"?>
<svg width="100%" height="100%" viewBox="-18.5 -18.5 37 37">
<defs>
<style>
<![CDATA[
svg { fill-opacity:0.5;stroke-width:0.01;stroke-linejoin:round; }
.c0 { fill:rgb(33,33,33);stroke:rgb(99,95,82); }
.c4 { fill:rgb(196,0,38);stroke:rgb(33,33,33); }
.c15 { fill:rgb(255,255,255);stroke:rgb(33,33,33); }
.c16 { fill:rgb(128,128,96);stroke:rgb(99,95,82); }
]]>
</style>
<symbol id="4-4ndis" overflow="visible">
<use xlink:href="#2-4ndis" />
<use xlink:href="#2-4ndis" transform="scale(1,-1)"/>
</symbol>
<symbol id="2-4ndis" overflow="visible">
<path d="M1,0 A1,1,0,1,1,-1,0 L-1,1 L1,1 Z"/>
</symbol>
<symbol id="1-4chrd" overflow="visible">
<path d="M1,0 A1,1,0,0,1,0,1 Z"/>
</symbol>
<symbol id="1-8chrd" overflow="visible">
<path d="M1,0 A1,1,0,0,1,0.7071,0.7071 Z"/>
</symbol>
<symbol id="p_mtron" overflow="visible">
<use class="c16" xlink:href="#4-4ndis" transform="matrix(18.5,0,0,-18.5,0,0)" />
<use class="c0" xlink:href="#1-4chrd" transform="matrix(18.5,0,0,-18.5,0,0)" />
<use class="c0" xlink:href="#1-4chrd" transform="matrix(0,-18.5,-18.5,0,0,0)" />
<use class="c0" xlink:href="#1-4chrd"
transform="matrix(-13.0815,13.0815,13.0815,13.0815,0,0)" />
<use class="c0" xlink:href="#1-8chrd" transform="matrix(-18.5,0,0,18.5,0,0)" />
<use class="c0" xlink:href="#1-8chrd"
transform="matrix(13.0815,13.0815,13.0815,-13.0815,0,0)" />
<path d="M0,-18.5 L-7.97,-7.25 L7.97,-7.25 Z" class="c0"/>
<path d="M0,-18.5 L18.5,0 L7.97,-7.25 Z" class="c0"/>
<path d="M0,-18.5 L-18.5,0 L-7.97,-7.25 Z" class="c0"/>
<path d="M13.08,13.08 L14.85,7.25 L-14.85,7.25 L-13.08,13.08 Z" class="c0"/>
<path d="M14.85,7.25 L18.5,0 L13.0815,13.0815 Z" class="c0"/>
<path d="M-14.85,7.25 L-18.5,0 L-13.0815,13.0815 Z" class="c0"/>
<path d="M-7.97,-7.25 L-18.5,0 L-14.85,7.25 Z" class="c0"/>
<path d="M14.85,7.25 L18.5,0 L7.97,-7.25 Z" class="c0"/>
<path d="M0,-6.26 L0.69,-7.25 L-0.69,-7.25 Z" class="c0"/>
<path d="M-5.06,7.25 L-3.69,7.25 L-4.38,6.26 Z" class="c0"/>
<path d="M4.38,6.26 L3.69,7.25 L5.06,7.25 Z" class="c0"/>
<path d="M-7.97,-7.25 L-14.85,7.25 L-12.86,6.02 L-7.22,-6.02 Z" class="c15"/>
<path d="M7.22,-6.02 L12.86,6.02 L14.85,7.25 L7.97,-7.25 Z" class="c15"/>
<path d="M-14.85,7.25 L-5.06,7.25 L-5.22,6.02 L-12.86,6.02 Z" class="c15"/>
<path d="M12.86,6.02 L5.22,6.02 L5.06,7.25 L14.85,7.25 Z" class="c15"/>
<path d="M-5.22,6.02 L-5.06,7.25 L-4.38,6.26 L-4.38,4.79 Z" class="c15"/>
<path d="M4.38,4.79 L4.38,6.26 L5.06,7.25 L5.22,6.02 Z" class="c15"/>
<path d="M-4.38,6.26 L-3.69,7.25 L-3.53,6.02 L-4.38,4.79 Z" class="c15"/>
<path d="M4.38,4.79 L3.53,6.02 L3.69,7.25 L4.38,6.26 Z" class="c15"/>
<path d="M-3.69,7.25 L3.69,7.25 L3.53,6.02 L-3.53,6.02 Z" class="c15"/>
<path d="M-7.22,-6.02 L-0.85,-6.02 L-0.69,-7.25 L-7.97,-7.25 Z" class="c15"/>
<path d="M7.97,-7.25 L0.69,-7.25 L0.85,-6.02 L7.22,-6.02 Z" class="c15"/>
<path d="M-0.85,-6.02 L0,-4.79 L0,-6.26 L-0.69,-7.25 Z" class="c15"/>
<path d="M0.69,-7.25 L0,-6.26 L0,-4.79 L0.85,-6.02 Z" class="c15"/>
<path d="M-12.86,6.02 L-10.87,4.79 L-6.46,-4.79 L-7.22,-6.02 Z" class="c0"/>
<path d="M7.22,-6.02 L6.46,-4.79 L10.87,4.79 L12.86,6.02 Z" class="c0"/>
<path d="M-12.86,6.02 L-5.22,6.02 L-4.38,4.79 L-10.87,4.79 Z" class="c0"/>
<path d="M10.87,4.79 L4.38,4.79 L5.22,6.02 L12.86,6.02 Z" class="c0"/>
<path d="M-3.53,6.02 L3.53,6.02 L4.38,4.79 L-4.38,4.79 Z" class="c0"/>
<path d="M-6.46,-4.79 L0,-4.79 L-0.85,-6.02 L-7.22,-6.02 Z" class="c0"/>
<path d="M7.22,-6.02 L0.85,-6.02 L0,-4.79 L6.46,-4.79 Z" class="c0"/>
<path d="M-1.38,-4.79 L0,-1.76 L1.38,-4.79 Z" class="c0"/>
<path d="M-5.75,4.79 L-3,4.79 L-4.38,1.75 Z" class="c0"/>
<path d="M3,4.79 L5.75,4.79 L4.38,1.75 Z" class="c0"/>
<path d="M-7.85,-1.76 L-7.92,-1.65 L7.92,-1.65 L7.85,-1.76 Z" class="c0"/>
<path d="M-9.45,1.75 L9.45,1.75 L9.4,1.65 L-9.4,1.65 Z" class="c0"/>
<path d="M-10.2,3.37 L-10.3,3.54 L10.3,3.54 L10.2,3.37 Z" class="c0"/>
<path d="M-7.86,-1.76 L0,-1.76 L-1.38,-4.79 L-6.46,-4.79 Z" class="c4"/>
<path d="M6.46,-4.79 L1.38,-4.79 L0,-1.76 L7.86,-1.76 Z" class="c4"/>
<path d="M-9.4,1.65 L9.4,1.65 L7.92,-1.65 L-7.92,-1.65 Z" class="c4"/>
<path d="M-9.45,1.75 L-10.2,3.37 L-5.11,3.37 L-4.38,1.75 Z" class="c4"/>
<path d="M4.38,1.75 L5.11,3.37 L10.2,3.37 L9.45,1.75 Z" class="c4"/>
<path d="M-4.38,1.75 L-3.64,3.37 L3.64,3.37 L4.38,1.75 Z" class="c4"/>
<path d="M-10.3,3.54 L-10.87,4.79 L-5.75,4.79 L-5.19,3.54 Z" class="c4"/>
<path d="M5.19,3.54 L5.75,4.79 L10.87,4.79 L10.3,3.54 Z" class="c4"/>
<path d="M-3.56,3.54 L-3,4.79 L3,4.79 L3.56,3.54 Z" class="c4"/>
</symbol>
</defs>
<use xlink:href="#p_mtron" class="c16"/>
</svg>
|
|
Message is in Reply To:
![](/news/x.gif) | | Re: Web-based LDraw viewing
|
| (...) A while back, I wrote for my own amusement a perl program which will take a patterned part, and will produce an SVG file of the pattern. I've been thinking about forwarding it to the LDraw.org team, so they could include it with the parts (...) (20 years ago, 14-Mar-04, to lugnet.cad.dev, FTX)
|
18 Messages in This Thread: ![Web-based LDraw viewing -Mike Thorn (13-Mar-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/246.gif) ![Re: Web-based LDraw viewing -Michael Horvath (13-Mar-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Web-based LDraw viewing -Andrew Westrate (14-Mar-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/246.gif) ![You are here](/news/here.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Web-based LDraw viewing -Michael Horvath (21-Mar-04 to lugnet.cad.dev)](/news/x.gif)
![](/news/x.gif) ![](/news/268.gif) ![Re: Web-based LDraw viewing -Orion Pobursky (13-Mar-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Web-based LDraw viewing -Ross Crawford (13-Mar-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Web-based LDraw viewing -Orion Pobursky (13-Mar-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Web-based LDraw viewing -Wayne Gramlich (14-Mar-04 to lugnet.cad.dev)](/news/x.gif)
![](/news/x.gif) ![](/news/268.gif) ![Re: Web-based LDraw viewing -Miguel Agullo (14-Mar-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/246.gif) ![Re: Web-based LDraw viewing -Orion Pobursky (14-Mar-04 to lugnet.cad.dev)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Web-based LDraw viewing -Mike Thorn (22-Mar-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Web-based LDraw viewing -Antonio Cortes Carrillo (5-Apr-04 to lugnet.cad.dev)](/news/x.gif)
![](/news/x.gif) ![](/news/268.gif) ![Re: Web-based LDraw viewing -Michael Horvath (21-Mar-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Web-based LDraw viewing -Mike Thorn (22-Mar-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Web-based LDraw viewing -Michael Horvath (23-Mar-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Web-based LDraw viewing -Mike Thorn (23-Mar-04 to lugnet.cad.dev)](/news/x.gif)
![](/news/x.gif) ![](/news/68.gif) ![Re: Web-based LDraw viewing -Michael Horvath (24-Mar-04 to lugnet.cad.dev)](/news/x.gif)
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|