SvgBatch 0.1.9 - Free SvgBatch Download at Downloadplex.com

SvgBatch 0.1.9 - Free SvgBatch Download at Downloadplex.com
Check todays, this month or hot new software. This week most downloaded new software. You are not Logged in! Do you want to Log in or Register?
linux default icon

SvgBatch 0.1.9

 
 

SvgBatch 0.1.9

no screenshot
Download Now
(0.02 Mb)

SvgBatch Publisher's description:

from Jonathan Hartley

Loads SVG files into pyglet Batch objects for OpenGL rendering.

SvgBatch is a Python library to load SVG vector graphic files, and convert them into pyglet Batch objects, for OpenGL rendering.

The polygons from the SVG file are tesselated using GLU functions, and used to create a pyglet Batch object of indexed vertex arrays. The Batch will aggregate all paths from an SVG file into a single OpenGL GL_TRIANGLES primitive for rendering. Each path is also exposed in its untessellated form, indexed by 'id' attribute, so the application could use them for collision detection, for example.

Currently only a subset of SVG is handled - closed polygons, filled with solid color. These may comprise multiple loops (disjoint areas or holes), but must be made up from straight line edges. Arc polygon edges, gradient fills and other SVG entities (such as rectangles or text) are not currently handled.

Usage:

Very straightforward:

svg = SvgBatch('data/logo.svg')
batch = svg.create_batch()

create_batch() returns a [http://www.pyglet.org/doc/api/index.html pyglet Batch object], which can be rendered in a pyglet program using batch.draw() (see demo.py.)

Each path in the input SVG can include multiple loops, including holes or islands. The resulting batch is populated with one primitive for each filled path tag in the SVG. The primitives are all indexed vertices of GL_TRIANGLES, which I understand the batch will aggregate into a single large primitive.

The untessellated geometry of the loaded paths can also be accessed for things other than rendering (eg. if your application wants to access the vertices of the loaded shape to create a collision boundary):

path = svg.path_by_id['pathid']

where pathid is the string ID of the path tag in the SVG file. This can be set from within Inkscape by selecting Object properties for the path. The returned Path object has the following attributes:

* id: string, copied from the svg tag's id attribute
* color: triple of unsigned bytes, (r, g, b)
* loops: a list of loops. A loop is a list of vertices. A vertex is a pair of floats or ints.
* bounds: an object which provides xmin, xmax, ymin, ymax, denoting the axis-aligned extents of the path
* offset(x, y): a method which will add the given offset to all vertices in the path

md5=a1fabf461df3e26f105abbf54b937414
You can free download SvgBatch 0.1.9 now.

System Requirements:

ยท Python

- Download SvgBatch 0.1.9 freeDownload SvgBatch 0.1.9 free


 
Bookmark SvgBatch 0.1.9
 

SvgBatch Related software downloads:

 
JxBrowser for Linux (x86) personal 1.2 icon JxBrowser for Linux (x86) personal 1.2
JxBrowser gives developers an ability to integrate Firefox into Java apps
21-04-2009 09:19:47 | Commercial | Downloads: (30)
linux default icon sdo 0.6.5
Converts oracle SDO_GEOMETRY objects to WKT and GeoJSON.
02-06-2009 23:37:41 | Freeware | Downloads: (29)
JxBrowser for Linux (x86) standard 1.2 icon JxBrowser for Linux (x86) standard 1.2
JxBrowser gives developers an ability to integrate Firefox into Java apps
21-04-2009 09:20:07 | Commercial | Downloads: (28)
linux default icon mm-common 0.7.1
This module is part of the GNOME C++ bindings effort
28-08-2009 23:52:34 | Freeware | Downloads: (25)
JNIWrapper for Linux (x86/x64) standard 3.7.2 icon JNIWrapper for Linux (x86/x64) standard 3.7.2
JNIWrapper eliminates difficulties in working with native code from Java apps.
21-04-2009 09:20:31 | Commercial | Downloads: (23)
JNIWrapper for Linux (ppc32/ppc64) Std. 3.7.2 icon JNIWrapper for Linux (ppc32/ppc64) Std. 3.7.2
JNIWrapper eliminates difficulties in working with native code from Java apps.
22-04-2009 08:47:49 | Commercial | Downloads: (23)
linux default icon QuickFunctor 0.8.1.1
QuickFunctor project is a library that consists of a collection of template classes and global functions.
07-07-2009 23:07:55 | Freeware | Downloads: (23)
JNIWrapper for Solaris (x64/x86) Std. 3.7.2 icon JNIWrapper for Solaris (x64/x86) Std. 3.7.2
JNIWrapper eliminates difficulties in working with native code from Java apps.
22-04-2009 08:42:42 | Commercial | Downloads: (22)
linux default icon gvfs 1.2.3 / 1.3.4
gvfs is a GNOME library for vfs.
11-08-2009 02:46:13 | Freeware | Downloads: (22)
Memory Structures Library 4.2.2 icon Memory Structures Library 4.2.2
Memory Structures Library (MemSL) is a complete data structures/collection classes library with memory tracing.
24-08-2009 22:16:21 | Freeware | Downloads: (22)


SvgBatch Related Tags:

    pyglet,     batch,     object,     vertices,     loops,     indexed,     batch,     triangles,     untessellated,     loaded,     attribute,     primitive,     rendering,     edges,     multiple,     holes,     color,     filled,     svgbatch 0.1.9

SvgBatch Voting and Download Button For Your Site:

To link back to this page, please copy code below and insert in your page. All visits come thru this code will add a 10 point vote to this software.

Example:
Rate this software with 5 stars from downloadplex.com.     

Downloadplex.com periodically updates pricing and software information of SvgBatch from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using SvgBatch crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of SvgBatch Edition.
Downloadplex.com also does not provide download link for SvgBatch from Rapidshare, Megaupload, Yousendit, Mediafire, Filefactory and other Free file hosting service also. The download file is obtained directly from the publisher, not from any Peer to Peer file sharing applications such as Shareaza, Limewire, Kazaa, Imesh, eDonkey, eMule, Ares, BearShare, Overnet, Morpheus, BitTorrent Azureus and WinMX

Newsletter

Use FeedBurner to get latest software free downloads via email

Enter your email address:

Delivered by FeedBurner

Advertising