Hello all - Jayson here and I am designing a program to make a 3d solid and view it in browser, with Python on my Virtual Machine running Debian.
I have had many issues with the GUI aspect of my program, in browser ...and will continue to post updates here soon... also any help or change in direction of this code would be greatly appreciated.
stl-viz.py
Code:
rom solid2 import *
from jupyterscad import view
from simple_3dviz import Mesh
from simple_3dviz.window import show
from simple_3dviz.utils import render
d = cube(5) + sphere(5).right(5) - cylinder(r=2, h=6)
scad = (scad_render(d))
view(scad, outfile='/var/www/design.stl')
m = Mesh.from_file('/var/www/design.stl', color=(0.1,0.5,0.1))
show(m, camera_position=(-60., -160, 120), camera_target=(0., 0, 40), light=(-60, -160, 120))
when i run:
Code:
sudo python3 console-stl-viewer.py
I get a browser window @ my [link moderated] that refreshes an iframe that doesent have [link moderated] in 'er.
so.....if i go there on the web when its running its not working either..
The page does connect, and there seems to be a transmission issue ...now
Must be my GUI Command?