Coder Social home page Coder Social logo

dayongupup / osgpyplusplus Goto Github PK

View Code? Open in Web Editor NEW

This project forked from janeliascicomp/osgpyplusplus

0.0 1.0 0.0 37.09 MB

Python bindings for OpenSceneGraph 3D graphics API, created using Boost.Python and Py++

License: Other

Python 1.14% C 0.04% C++ 98.56% CMake 0.26%

osgpyplusplus's Introduction

osgpyplusplus

Python bindings for OpenSceneGraph 3D graphics API, created using Boost.Python and Py++

There exist already two projects that provide python bindings for OpenSceneGraph: osgswig and osgboostpython. So why am I trying to create yet another?

Currency: The competing project osgswig has not been updated for a couple of years (I'm writing in 2014). So I created a fork of osgswig (elsewhere) here on github, and I modified osgswig to work with OpenSceneGraph version 3.2.1. I also added support to osgswig for the osgVolume module. I learned enough about osgswig in this process to convince me that I would prefer to work with bindings based on Boost.Python, rather than on SWIG. So I created this osgpyplusplus project too.

Completeness: The other competing project, osgboostpython, contains impressive manually coded bindings based on Boost.Python. I predict that osgboostpython will never be complete, because manually coding those bindings is an overly ambitious goal. So I have chosen to use the Py++ code generator to automate the creation of Boost.Python bindings for OpenSceneGraph. I am fortunate to have the osgboostpython project available, to serve as a gold-standard touchstone for what these semi-automatically generated bindings should look like.

Control: I am maintaining an application (Neuroptikon) that depends critically on Python bindings for OpenSceneGraph. I appreciate having both projects controlled by me, so I can improve them together, without necessarily needing to negotiate features with others.

One special feature of these osgpyplusplus bindings is built-in API documentation. OpenSceneGraph source code contains DOXYGEN comments to document the API. osgpyplusplus parses these comments, and creates python docstrings, so they can be used for interactive API documentation. Further, these docstrings are formatted so that python API documentation could be generated using the epydoc tool. The intention is that the OpenSceneGraph python API documentation created with epydoc, would resemble the C++ documentation created with DOXYGEN.

The Janelia Farm Research Campus Software Copyright 1.1 Copyright (c) 2014, Howard Hughes Medical Institute, All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of the Howard Hughes Medical Institute nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, NON-INFRINGEMENT, OR FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; REASONABLE ROYALTIES; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

osgpyplusplus's People

Contributors

cmbruns avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.