-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for RSS, Atom, AMF and 3MF
- Loading branch information
1 parent
db9fd35
commit 40d6218
Showing
9 changed files
with
241 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<model unit="inch" xml:lang="en-US" xmlns="http://schemas.microsoft.com/3dmanufacturing/core/2015/02"> | ||
<metadata name="Copyright"> | ||
Copyright (c) 2015 3MF Consortium. All rights reserved. | ||
</metadata> | ||
<resources> | ||
<object id="1" type="model"> | ||
<mesh> | ||
<vertices> | ||
<vertex x="0" y="0" z="0" /> | ||
<vertex x="1" y="0" z="0" /> | ||
<vertex x="1" y="2" z="0" /> | ||
<vertex x="0" y="2" z="0" /> | ||
<vertex x="0" y="0" z="3" /> | ||
<vertex x="1" y="0" z="3" /> | ||
<vertex x="1" y="2" z="3" /> | ||
<vertex x="0" y="2" z="3" /> | ||
</vertices> | ||
<triangles> | ||
<triangle v1="3" v2="2" v3="1" /> | ||
<triangle v1="1" v2="0" v3="3" /> | ||
<triangle v1="4" v2="5" v3="6" /> | ||
<triangle v1="6" v2="7" v3="4" /> | ||
<triangle v1="0" v2="1" v3="5" /> | ||
<triangle v1="5" v2="4" v3="0" /> | ||
<triangle v1="1" v2="2" v3="6" /> | ||
<triangle v1="6" v2="5" v3="1" /> | ||
<triangle v1="2" v2="3" v3="7" /> | ||
<triangle v1="7" v2="6" v3="2" /> | ||
<triangle v1="3" v2="0" v3="4" /> | ||
<triangle v1="4" v2="7" v3="3" /> | ||
</triangles> | ||
</mesh> | ||
</object> | ||
</resources> | ||
<build> | ||
<item objectid="1" /> | ||
</build> | ||
</model> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<amf unit="inch" version="1.1"> | ||
<metadata type="name">Split Pyramid</metadata> | ||
<metadata type="author">John Smith</metadata> | ||
<object id="1"> | ||
<mesh> | ||
<vertices> | ||
<vertex> | ||
<coordinates> | ||
<x>0</x> | ||
<y>0</y> | ||
<z>0</z> | ||
</coordinates> | ||
</vertex> | ||
<vertex> | ||
<coordinates> | ||
<x>1</x> | ||
<y>0</y> | ||
<z>0</z> | ||
</coordinates> | ||
</vertex> | ||
<vertex> | ||
<coordinates> | ||
<x>0</x> | ||
<y>1</y> | ||
<z>0</z> | ||
</coordinates> | ||
</vertex> | ||
<vertex> | ||
<coordinates> | ||
<x>1</x> | ||
<y>1</y> | ||
<z>0</z> | ||
</coordinates> | ||
</vertex> | ||
<vertex> | ||
<coordinates> | ||
<x>0.5</x> | ||
<y>0.5</y> | ||
<z>1</z> | ||
</coordinates> | ||
</vertex> | ||
</vertices> | ||
<volume materialid="2"> | ||
<metadata type="name">Hard side</metadata> | ||
<triangle> | ||
<v1>2</v1> | ||
<v2>1</v2> | ||
<v3>0</v3> | ||
</triangle> | ||
<triangle> | ||
<v1>0</v1> | ||
<v2>1</v2> | ||
<v3>4</v3> | ||
</triangle> | ||
<triangle> | ||
<v1>4</v1> | ||
<v2>1</v2> | ||
<v3>2</v3> | ||
</triangle> | ||
<triangle> | ||
<v1>0</v1> | ||
<v2>4</v2> | ||
<v3>2</v3> | ||
</triangle> | ||
</volume> | ||
<volume materialid="3"> | ||
<metadata type="name">Soft side</metadata> | ||
<triangle> | ||
<v1>2</v1> | ||
<v2>3</v2> | ||
<v3>1</v3> | ||
</triangle> | ||
<triangle> | ||
<v1>1</v1> | ||
<v2>3</v2> | ||
<v3>4</v3> | ||
</triangle> | ||
<triangle> | ||
<v1>4</v1> | ||
<v2>3</v2> | ||
<v3>2</v3> | ||
</triangle> | ||
<triangle> | ||
<v1>4</v1> | ||
<v2>2</v2> | ||
<v3>1</v3> | ||
</triangle> | ||
</volume> | ||
</mesh> | ||
</object> | ||
<material id="2"> | ||
<metadata type="name">Hard material</metadata> | ||
<color> | ||
<r>0.1</r> | ||
<g>0.1</g> | ||
<b>0.1</b> | ||
</color> | ||
</material> | ||
<material id="3"> | ||
<metadata type="name">Soft material</metadata> | ||
<color> | ||
<r>0</r> | ||
<g>0.9</g> | ||
<b>0.9</b> | ||
<a>0.5</a> | ||
</color> | ||
</material> | ||
</amf> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<feed xmlns="http://www.w3.org/2005/Atom"> | ||
<title>Example Feed</title> | ||
<link href="http://example.org/" /> | ||
<updated>2003-12-13T18:30:02Z</updated> | ||
<author> | ||
<name>John Doe</name> | ||
</author> | ||
<id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id> | ||
<entry> | ||
<title>Atom-Powered Robots Run Amok</title> | ||
<link href="http://example.org/2003/12/13/atom03" /> | ||
<id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id> | ||
<updated>2003-12-13T18:30:02Z</updated> | ||
<summary>Some text.</summary> | ||
</entry> | ||
</feed> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<rss version="2.0"> | ||
<channel> | ||
<title>RSS Title</title> | ||
<description>This is an example of an RSS feed</description> | ||
<link>http://www.example.com/main.html</link> | ||
<lastBuildDate>Mon, 06 Sep 2010 00:01:00 +0000 </lastBuildDate> | ||
<pubDate>Sun, 06 Sep 2009 16:20:00 +0000</pubDate> | ||
<ttl>1800</ttl> | ||
<item> | ||
<title>Example entry</title> | ||
<description>Here is some text containing an interesting description.</description> | ||
<link>http://www.example.com/blog/post/1</link> | ||
<guid isPermaLink="false">7bd204c6-1655-4c27-aeee-53f933c5395f</guid> | ||
<pubDate>Sun, 06 Sep 2009 16:20:00 +0000</pubDate> | ||
</item> | ||
</channel> | ||
</rss> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters