Lattice workbench [updated Polar Array]

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Lattice workbench [in development]

Post by DeepSOIC »

Another small but fun use case for the workbench: extrude a cube.
1. Part Cube
2. Lattice Downgrade to Faces
3. Part Extrude along (1,1,1)
4. Lattice FuseCompound
Result is this:
crystal.png
crystal.png (15.36 KiB) Viewed 2803 times
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Lattice workbench [in development]

Post by DeepSOIC »

As it turns out, my fix for placement problems in explode has a big problem: circles become bsplines. Not good =(
User avatar
tanderson69
Veteran
Posts: 1626
Joined: Thu Feb 18, 2010 1:07 am

Re: Lattice workbench [in development]

Post by tanderson69 »

DeepSOIC wrote:2. Thinking on a analysis tool. Because it is impossible to figure out the content of shape (a compound of faces looks exactly like a solid cube).
Check shape/shape content will indicate this example, but I agree, it's not a complete picture.
DeepSOIC wrote:Alternative is a separate tool that uses graphviz (can be much easier as well as much harder than the first variant)
Something like?:
connector.png
connector.png (105.04 KiB) Viewed 2773 times
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Lattice workbench [in development]

Post by DeepSOIC »

tanderson69 wrote: Check shape/shape content will indicate this example, but I agree, it's not a complete picture.
Not only incomplete, but it also can take ages, and will show errors for many stuff generated by/useful in Lattice. While I want just to display the compound nesting and compound children types.
So your graphviz example is great, but I don't want to display anything below "Solid".
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Lattice workbench [in development]

Post by DeepSOIC »

DeepSOIC wrote:As it turns out, my fix for placement problems in explode has a big problem: circles become bsplines. Not good =(
Another attempt at fixing, hopefully the last one. https://github.com/DeepSOIC/Lattice/com ... 52e3a25a84
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Lattice workbench [in development]

Post by DeepSOIC »

New feature: extract open wires of shells. Implemented as a mode of Downgrade.
Not sure if it was a good idea to make it a part of downgrade, but it was the easiest.
lattice-openwires.png
lattice-openwires.png (31.68 KiB) Viewed 2741 times
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Lattice workbench [in development]

Post by DeepSOIC »

Teaser.
I recall someone was struggling creating something like this:
compose-teaser.png
compose-teaser.png (29.69 KiB) Viewed 2711 times
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Lattice workbench [in development]

Post by DeepSOIC »

Another teaser.
Lattice is beginning to look the way I wanted to make it. Those orange things are a lattice object: an array of placements
lattice-teaser.png
lattice-teaser.png (203.68 KiB) Viewed 2688 times
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Lattice workbench [in development]

Post by triplus »

Interesting.
mario52
Veteran
Posts: 4698
Joined: Wed May 16, 2012 2:13 pm

Re: Lattice workbench [in development]

Post by mario52 »

Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
Post Reply