Skip to main content

Toolkit for VRML parsing and traversing. Includes a standalone VRML parser library and a conversion library for transforming VRML geometry into geometry format such as STL, with modular C++ backends and Python bindings.

Project description

vrmlxpy

Toolkit for VRML parsing and traversing. Includes a standalone VRML parser library and a conversion library for transforming VRML geometry into STL format, with modular C++ backends and Python bindings.

License

This project is licensed under the GNU General Public License v3.0 or later (GPL-3.0-or-later).
See the LICENSE file for details.

Prerequisites

  • You need to have the Boost installed on your system. Please follow instructions here.
  • Other third part library used is called CGAL. Follow instructions here.
  • For Python bindings creation, the solution uses pybind11. See the steps here.
  • The project uses Ninja build system. Please follow the installation instructions of this software based on your system vendor.
  • It comes naturally that you should have CMake installed on your system as well.
  • C++ compiler.

Build

Linux

  • You can choose to build the library based on two types of build configurations: Debug

      cmake --preset Debug
    
  • or Release.

      cmake --preset Release
    
  • After necessary files are generated, you are able to build.

  • Note that out/build/Debug in the following command is folder for Debug built, for Release, use out/build/Release.

     cmake --build out/build/Debug
    

Windows

  • It is recommended to develop in Visual Studio.
  • To open the project, navigate yourself to File - Open - Cmake... and choose the root CMakeLists.txt.
  • Visual Studio should handle the process of generating and building the library automatically.

Run C++ executable files

Linux

  • If your system has Valgrind installed, you can run the following commands like this:

      valgrind --leak-check=full --show-reachable=yes --track-origins=yes <YOUR PROGRAM>
    
  • You can use CTest which is a program that comes with CMake; it handles running the tests for the project.

  • Before running the command below, make sure that tests have access to configuration file testConfig.json which should be inside vrmlxpy\out\build\Release\to_geom folder (or vrmlxpy\out\build\Debug\to_geom) as one of the tests uses it. The paths in the configuration file should point to directories with test data.

  • Run the following command (once again, note that you might need to exchange Debug with Release if you have built for this type):

     ctest --test-dir out/build/Debug/vrml_proc
    
  • You might want to use --verbose for the command above.

Windows

  • TODO

Run Python

  • To get the idea how to use the library, have a look at example script.

Troubleshooting

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vrmlxpy-1.0.0a1.tar.gz (1.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vrmlxpy-1.0.0a1-py3-none-any.whl (1.7 MB view details)

Uploaded Python 3

File details

Details for the file vrmlxpy-1.0.0a1.tar.gz.

File metadata

  • Download URL: vrmlxpy-1.0.0a1.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for vrmlxpy-1.0.0a1.tar.gz
Algorithm Hash digest
SHA256 600f2bb6c81ceb8e85eb0cc3c3b300ac6a77d94160b2093467a13f447ea033ab
MD5 b445dab20a599090c2c2479f4f21f682
BLAKE2b-256 1d67d350aaa2d14a6b8a55cc512c32bb7277b2a1e317c8ec7f0b054d58639a75

See more details on using hashes here.

File details

Details for the file vrmlxpy-1.0.0a1-py3-none-any.whl.

File metadata

  • Download URL: vrmlxpy-1.0.0a1-py3-none-any.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for vrmlxpy-1.0.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 12f96885ab2459e0b81a4c85c4cc758713383f18f1d5fba2a372cd52af01d429
MD5 a0c365aa983bdd4912c936e6fc34e924
BLAKE2b-256 2e7f62aea9dd48987ea7a71c176485c91071ab93cbad1c079eda82d01f2dcd2d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page