Skip to content

Facet STEP for Lightweight WebGL Viewing as STL, webxml, and others

License

Notifications You must be signed in to change notification settings

steptools/stp2webgl

Repository files navigation

stp2webgl

Facet STEP for Lightweight Viewing

This command line tool converts STEP CAD data into triangular meshes, and then writes the result into lightweight files for use in WebGL and other visualization applications.

The STEP reading and faceting is handled by ST-Developer libraries. This code traverses the resulting mesh data and writes STL or a simple webxml format. If you have a mesh format that you prefer, consider adding a writer for it and including it as a command line option.

The webxml format description and a javascript client for displaying it as WebGL can be found at:

Building

This package contains a Visual Studio 2013 project file for building. When using with ST-Developer Personal Edition, set the platform to either "Release DLL" or "Debug DLL". There is also an NMAKE makefile called win32.mak which can be used for command line builds.

The package uses the ST-Developer libraries to read/write STEP files and mesh the CAD geometry. A downloadable version that is free for personal use can be found at:

ST-Developer Personal Edition

Extending

Is there a different back end that you would need? Create your own write_foo.cxx output driver by using one of the existing ones as a template. See CONTRIBUTING.md if you would like to send a pull request with your changes.

About

Facet STEP for Lightweight WebGL Viewing as STL, webxml, and others

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published