Skip to content

plasm-language/pyplasm

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
src
 
 
 
 
 
 

PLASM (Programming LAnguage for Solid Modeling)

Plasm is a 'design language' for geometric and solid parametric design, developed by the CAD Group at the Universities 'La Sapienza' and 'Roma Tre' in Italy. See also: http://www.plasm.net/

Supported python versions: >=3.6 (python 2.x no longer supported).

Supported OS: Windows, MacOsX, Linux.

To install pyplasm

# For Linux sometimes you have to install some python libraries 
# sudo apt-get install python3.6 libpython3/6

# replace `python3` with your python executable path
python3 -m pip install --user --upgrade pip numpy GL PyGlut PyOpenGL 
python3 -m pip install --upgrade pyplasm

Important for Big Sur users: there is a problem with PyOpenGL.So you will need to do as explained here a link

Then test it:

python3 -c "from pyplasm import *; VIEW(CUBOID([1,1,1]))"

Examples

[OK] resources\examples\arm2d.py
[OK] resources\examples\ashtray.py
[OK] resources\examples\ballorganizer.py
[OK] resources\examples\basic.py
[OK] resources\examples\batch.py
[OK] resources\examples\bsp.py
[OK] resources\examples\colors.py
[OK] resources\examples\graph.py
[OK] resources\examples\lathering.py
[OK] resources\examples\load_obj.py
[OK] resources\examples\pisa.py
[OK] resources\examples\plasm.py
[OK] resources\examples\rotational_solid.py
[OK] resources\examples\temple.py
[OK] resources\examples\threecubes.py

[BROKEN] resources\examples\manipulator.py (but not important, belongs to a different object)