• Home
  • Most Popular
  • Submit
  • About Us
  • Contact Us

Softpile

Free Downloads

Categories
  • Home
  • Most Popular
  • Communications
  • Desktop
  • Games & Entertainment
  • Graphic Apps
  • Network & Internet
  • Security & Privacy
  • System Utilities
Alternative to itextsharp 2022.11.10347
IronPDF offers an itextsharp alternative for HTML to PDF conversion with C# code examples, documentation, and ...
VShell Server for Linux and Mac 4.8
VShell is a versatile and secure file transfer server that supports multiple protocols and is compatible ...
PDF Studio PDF Editor for Linux 2022
PDF Studio is a cost-effective PDF editor that delivers full compatibility with the PDF Standard. It's ...
VQ Probe for Linux 1.5
VQ Probe is a comprehensive software tool that enables objective and subjective video quality analysis. The ...
Resilient Server 2.3
This Debian GNU/Linux (Buster) based software has a customized partitioning scheme that enhances robustness against filesystem ...
Valentina Studio for Linux 9.6
Valentina Studio is a cross-platform GUI manager for Mac, Windows, and Linux. It allows users to ...
VPN Lifeguard for Linux 1.0.58
The software monitors VPN connection and automatically terminates apps during connection loss, re-establishes the connection and ...
G_Viewer 0.84
G_Viewer is a Linux software that serves as both a file system and photo/image viewer. It ...
Checksome File Hash Tool for Linux 1.1
This software allows for the generation and verification of file hashes. It is a quick and ...
KeyWrangler Password Manager for Linux 1.2
A password management software that is secure, offline and extensible. It offers military-grade encryption to protect ...
Home Linux SvgBatch Download

SvgBatch

August 10, 2009
This software loads SVG files and converts them into pyglet Batch objects, optimized for OpenGL rendering. The process provides a fast and efficient method of rendering graphics in games and other applications.
Version 0.1.9
License BSD License
Platform Linux
Supported Languages English
Homepage code.google.com
Developed by Jonathan Hartley
SvgBatch is a powerful Python library that helps in loading SVG vector graphic files and converting them into pyglet Batch objects. The library is designed mainly for OpenGL rendering applications. The polygons from the SVG file are tesselated using GLU functions and used to create a pyglet Batch object of indexed vertex arrays. The resulting batch will aggregate all paths from an SVG file into a single OpenGL GL_TRIANGLES primitive for rendering.

In addition to rendering, each path in the input SVG can be accessed in its untesselated form. This can be used for collision detection, just to mention an example. Each path is indexed by its 'id' attribute, thus providing easy access to the vertices of the path.

Currently, SvgBatch only handles a subset of SVG- closed polygons which are 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 supported.

Utilizing SvgBatch is very straightforward. Upon loading an SVG file, create a batch object by invoking svg.create_batch( ). This returns a pyglet Batch object that can be rendered using batch.draw( ). Every filled path tag in the input SVG corresponds to a primitive in the resulting batch. The primitives consist of indexed vertices of GL_TRIANGLES, which the batch aggregates into a single large primitive.

To access the untessellated geometry of the loaded paths, simply use the below syntax:

path = svg.path_by_id['pathid']

Here, pathid refers to the string ID of the path tag in the SVG file. This ID can be set from within Inkscape by selecting Object properties for the path. The returned Path object has various attributes, such as id, color (as a triple of unsigned bytes), loops (a list of loops where each loop is a list of vertices), bounds (which provides xmin, xmax, ymin, ymax, denoting the axis-aligned extents of the path), and offset(x, y) (which is a method that adds the given offset to all vertices in the path).
What's New

Version 0.1.9: N/A

Free Download 19K
306
  • Share on:

Most Popular

  1. Quicksilver Forums 1.4.2
    99
  2. SlideMap 1.2.2
    97
  3. CherryTV 0.1
    76
  4. porm r2
    75
  5. Dvgrab 3.4
    74
  6. WikEd
    72
  7. Intel Software Development Emulator 1.70
    71
  8. DynVPN 1.0
    70
  9. xstereograph 2.1
    70
  10. Siesta::UserGuide 0.66
    65

Related Downloads

Sendmail-Jilter
Sendmail-Jilter is a software tool that contains the implementation of the popular ...
phpMyBackupPro
phpMyBackupPro is a MySQL backup tool accessible via the web that allows ...
Login Scan 'fusion'
Login Scan 'fusion' is a GDM theme adaptation of the KDE "fusion" ...
Bos Wars
"Bos Wars" is a modern, action-filled strategy game filled with excitement and ...
fftrans
fftrans is a software designed to replace the "Quick and Dirty Transcoder" ...
Liquid for Maya
LiquidMaya is a plugin for Autodesk Maya, designed to be compatible with ...
Simple Perl Package Manager
Simple Perl Package Manager is a manager for software packages written in ...
StartCom MultiMedia Linux
The MultiMedia Edition software is user-friendly and targeted towards tech-savvy home users. ...
Loggerhead
Loggerhead is a tool that allows viewing projects using Bazaar through a ...
An MP3 LEnder
MP3 LEnder is a lightweight and user-friendly MP3 server that is programmed ...
Copyright © 1999-2025 Softpile Free Downloads
  • Most Popular
  • Submit
  • About Us
  • Contact Us
  • Privacy Policy
  • Disclaimer
  • Terms of Use

Can we use your data to tailor ads for you?

Our partners will collect data and use cookies for ad personalization and measurement.

By choosing "I agree", closing this pop-up or clicking on any element on the page, you agree to the use of cookies to help us provide you with a better user experience.

Learn how Softpile and our partners collect and use data.

You can change your choice at any time in our privacy center.

Cookie Settings

Our website stores four types of cookies. At any time you can choose which cookies you accept and which you refuse. You can read more about what cookies are and what types of cookies we store in our Cookie Policy.

are necessary for technical reasons. Without them, this website may not function properly.

are necessary for specific functionality on the website. Without them, some features may be disabled.

allow us to analyse website use and to improve the visitor's experience.

allow us to personalise your experience and to send you relevant content and offers, on this website and other websites.