Toolkit for vismach model

More
06 Dec 2022 13:35 #258697 by Aciera
Replied by Aciera on topic Toolkit for vismach model
I haven't had much luck working with exported stl groups. My workflow is to create the STLs from individual parts in the CAD with the origin in the center of the joint where the next part attaches but I presume you don't have a proper CAD model of the machine assembly other than as an STL?
The following user(s) said Thank You: rodw

Please Log in or Create an account to join the conversation.

More
07 Dec 2022 00:20 #258770 by cakeslob
Replied by cakeslob on topic Toolkit for vismach model
For anyone interested, the machine simulator in mastercam appears to operate in a similar manor to vismach. By similar I mean they are both machine simulators that use stl files, and mastercam exports those stl parameters into an xml file. many places provide these machine models as well. the mastercam sim is also used to align all the joints and set the limits

pocketnc.com/pages/mastercam-information
the first link doesnt work, but this one has the files, its" v1 machine simulation"
cdn.shopify.com/s/files/1/0077/5477/6623...ineSim9-1-16.zip?992
this has all the stl files for the pocketnc model and the xml file for assembling it and the constraints

this is what the xml file looks like. from my narrow understanding, this look like the numbers that would be used in vismach 

Warning: Spoiler!
The following user(s) said Thank You: tommylight, Aciera

Please Log in or Create an account to join the conversation.

More
08 Dec 2022 23:12 #258929 by andypugh
Replied by andypugh on topic Toolkit for vismach model

I have been trying today and found it very trying!
I opened a single STL model of all parts provided to me in F360, made a rigid group and then set the part origin to the spindle tip. Then I exported all the parts as a mesh in  Ascii STL. THey should have known where they lived

I think that I found it necessary to _create_ the parts in-situ, rather than move them later, if you want to avoid having to shift them about in the Vismach script. 

I am curious about the file sizes and geometric fidelity of STL v OBJ. 

 
The following user(s) said Thank You: rodw

Please Log in or Create an account to join the conversation.

More
09 Dec 2022 07:58 #258974 by Aciera
Replied by Aciera on topic Toolkit for vismach model

I think that I found it necessary to _create_ the parts in-situ, rather than move them later, if you want to avoid having to shift them about in the Vismach script. 

Maybe we need to make a distinction between individual parts that are to be assembled rigidly in the model and parts that need to be movable in the finished model? I can see how importing an assembly of STLs would work in the former case but in the latter I would think that the movable parts need to be imported as separate STL bodys.

Please Log in or Create an account to join the conversation.

More
09 Dec 2022 08:10 #258976 by Aciera
Replied by Aciera on topic Toolkit for vismach model
An interesting application of a vismach model might be to check for interference of machine parts while running a gcode file in a simulation config. I have no idea how complex such a feature would be to include but ROS uses that, IIRC.

Please Log in or Create an account to join the conversation.

More
10 Dec 2022 10:38 #259071 by andypugh
Replied by andypugh on topic Toolkit for vismach model
It should be possible to add a collision detection function to the Vismach base code, and then the python handler could choose to run it, or not.
Googling for "opengl collision detection" suggests that it is not built-in to OpenGL as far as I can see.
The following user(s) said Thank You: Aciera

Please Log in or Create an account to join the conversation.

More
More
11 Dec 2022 20:10 #259216 by andypugh
Replied by andypugh on topic Toolkit for vismach model
That 2D collision algorithm wouldn't work with these complex 3D shapes. Siimply calculating the intersection of the bounding cuboids would false-flag pretty much permanently for most models.

Please Log in or Create an account to join the conversation.

More
31 Jan 2023 05:00 #263298 by emildepp
Replied by emildepp on topic Toolkit for vismach model

IndentationError: expected an indented block after class definition on line 12

This error message occurs when the Python interpreter encounters a code block that should be indented, but isn't. Python indentation is a common issue in Python because whitespace is used to define code blocks, so proper indentation is critical for code to run correctly. Some common causes of this error include:
  • Forgetting to indent the statements within a compound statement
  • Forgetting to indent the statements of a user-defined function.

To fix the error, make sure that all lines in the code block are properly indented by the same number of spaces or tabs. . It is recommended to use 4 spaces for indentation in Python, tabulation or a different number of spaces may work, but it is also known to cause trouble at times. Tabs are a bad idea because they may create different amount if spacing in different editors . 
 

Please Log in or Create an account to join the conversation.

Time to create page: 0.199 seconds
Powered by Kunena Forum