vismach issues

More
2 years 7 months ago #295371 by Abdulkareem
vismach issues was created by Abdulkareem
I am trying to build my machine in vismach, it works fine till i add my stl file, it shows everything except the stl file, the stl file is ascii not binary. here is the code: 
#!/usr/bin/env python3
from vismach import *
import hal
import math
import sys

c = hal.component("simtest")
c.newpin("joint0", hal.HAL_FLOAT, hal.HAL_IN)
c.newpin("joint1", hal.HAL_FLOAT, hal.HAL_IN)
c.newpin("joint2", hal.HAL_FLOAT, hal.HAL_IN)
c.ready()


tooltip = Capture()
toolshape = CylinderZ(30,10,0,10)
toolshape = Color([1,1,0,1],[toolshape])
Aassembly = Collection([toolshape,tooltip])
Aassembly = Translate([Aassembly],0,0,-30)

X=CylinderX(-100,1,100,1)
Y=CylinderY(-100,1,100,1)
Z=CylinderZ(-100,1,100,1)
axes = Collection([X,Y,Z])
axes = Color([0,1,0,1],[axes])

shoulder = AsciiSTL("/home/abdulkareem/linuxcnc/configs/stl/shoulder.stl")
shoulder= Color([1.0,0.5,0.5,1],[shoulder])
Aassembly = Collection([Aassembly,shoulder])
work = Capture()

model = Collection( [Aassembly,work,axes])
main(model , tooltip , work , 100, lat=-75, lon=215)

 

Please Log in to join the conversation.

More
2 years 7 months ago #295372 by tommylight
Replied by tommylight on topic vismach issues
@Abdul,
stop double posting and stop using the same title for multiple subjects and different topics, you are making it impossible to follow what has been answered and what is going on.
Thank you.

Please Log in to join the conversation.

More
2 years 7 months ago #295395 by Abdulkareem
Replied by Abdulkareem on topic vismach issues
where do i have to post it

Please Log in to join the conversation.

More
2 years 7 months ago #295398 by tommylight
Replied by tommylight on topic vismach issues
Where is not important, how is, so use longer tittle that explains what the subject is, and keep stuff relates to the same subject in the same topic.
You already have another topic with this same subject that member Aciera is trying to help you with, keep everything regarding Vismach on that topic.
When using the same title and multiple topics, it is very hard to keep track and even harder when someone else searches for it, and this forum when editing one topic can also change the other, although we got quite good at avoiding his.
In general, post wherever you want and as much as you like/need, we can move stuff around if there is a better place for it, just use longer titles.
Thank you.

Please Log in to join the conversation.

Time to create page: 0.079 seconds
Powered by Kunena Forum