PolarPattern with Z-axis shift depending on the function of angle
Forum rules
and Helpful information
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help
Also, be nice to others! Read the FreeCAD code of conduct!
Also, be nice to others! Read the FreeCAD code of conduct!
-
- Veteran
- Posts: 3192
- Joined: Thu Sep 24, 2020 10:31 pm
- Location: Hawaii
- Contact:
Re: PolarPattern with Z-axis shift depending on the function of angle
Purely through the Gui, using Lattice2.
The key was to add a custom thetadeg property to a Part Cylinder and couple it to its Placement via expressions. Then make a Lattice2 paraseries in the thetadeg parameter.
The key was to add a custom thetadeg property to a Part Cylinder and couple it to its Placement via expressions. Then make a Lattice2 paraseries in the thetadeg parameter.
- Attachments
-
- wavyholes.FCStd
- (232.67 KiB) Downloaded 18 times
Re: PolarPattern with Z-axis shift depending on the function of angle
Just a left field comment. The Nodes workbench can also do this quite nicely.
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
-
- Veteran
- Posts: 3192
- Joined: Thu Sep 24, 2020 10:31 pm
- Location: Hawaii
- Contact:
Re: PolarPattern with Z-axis shift depending on the function of angle
Changing the technique slightly into a way that nicely generalizes to any situation where we want to populate a single-parameter family of placements with an object.
The Parametric placement is:
You can populate the paraseries with objects, using Lattice2|Populate with copies.
- Create a custom Placement
- Right-click in its data field and create a new float property.
- Use expressions in the Placement fields to describe the location and orientation of the Placements as a function of your new parameter.
- Select the Placement and then click Lattice2|Series Features|Paraseries.
- In the paraseries properties create the parameter series using the generator, by listing values ,or by extracting from a spreadsheet
- Set ParameterRef to Placment.yourParameterName Directly - not in the Expression Editor!
- ParameterType is float
- Turn on recomputes.
The Parametric placement is:
You can populate the paraseries with objects, using Lattice2|Populate with copies.
- Attachments
-
- customplacementarray.FCStd
- (15.67 KiB) Downloaded 16 times
-
- Screen Shot 2022-11-30 at 10.45.04 AM.png (18.46 KiB) Viewed 863 times
-
- Screen Shot 2022-11-30 at 10.43.55 AM.png (43.79 KiB) Viewed 863 times
-
- Screen Shot 2022-11-30 at 10.39.53 AM.png (33.29 KiB) Viewed 863 times
Re: PolarPattern with Z-axis shift depending on the function of angle
Many thanks to all of you for help
I will learn Lattice2 workbench from the videos to understand what's going on.
I will learn Lattice2 workbench from the videos to understand what's going on.
Best regards,
Jacek
Jacek
-
- Veteran
- Posts: 3192
- Joined: Thu Sep 24, 2020 10:31 pm
- Location: Hawaii
- Contact:
Re: PolarPattern with Z-axis shift depending on the function of angle
Mangojelly has a good youtube series on Lattice2 but I’m not sure he specifically covers paraseries.
edit:
@JackkDBA
Lattice2's documentation is at https://github.com/DeepSOIC/Lattice2/wiki. Some examples in the forum: https://forum.freecadweb.org/viewtopic.php?f=3&t=67968 https://forum.freecadweb.org/viewtopic. ... 09#p610909
edit:
@JackkDBA
Lattice2's documentation is at https://github.com/DeepSOIC/Lattice2/wiki. Some examples in the forum: https://forum.freecadweb.org/viewtopic.php?f=3&t=67968 https://forum.freecadweb.org/viewtopic. ... 09#p610909
Re: PolarPattern with Z-axis shift depending on the function of angle
I can't figure out where the Base_t parameter is defined and where is the "t" property came from:edwilliams16 wrote: ↑Wed Nov 30, 2022 8:51 pmIn the example, the parameter Name is Base_t, corresponding to angle.
Best regards,
Jacek
Jacek
-
- Veteran
- Posts: 3192
- Joined: Thu Sep 24, 2020 10:31 pm
- Location: Hawaii
- Contact:
Re: PolarPattern with Z-axis shift depending on the function of angle
@JackkDBA
From right clicking in Custom’s data field and adding a new property.which you name t in the group Base.
From right clicking in Custom’s data field and adding a new property.which you name t in the group Base.
Re: PolarPattern with Z-axis shift depending on the function of angle
Maybe I am clicking in wrong place but I don't see an option similar to "Add property" after right-click on Custom's data (empty field below "Placement Choice") :edwilliams16 wrote: ↑Sun Dec 04, 2022 1:18 pm @JackkDBA
From right clicking in Custom’s data field and adding a new property.which you name t in the group Base.
Best regards,
Jacek
Jacek
-
- Veteran
- Posts: 3192
- Joined: Thu Sep 24, 2020 10:31 pm
- Location: Hawaii
- Contact:
Re: PolarPattern with Z-axis shift depending on the function of angle
Right click, set "Show All'.
Right Click, 'Add Property'
I think I have 'Show All' as my default somewhere.
Right Click, 'Add Property'
I think I have 'Show All' as my default somewhere.
Re: PolarPattern with Z-axis shift depending on the function of angle
Trying to do with ParametricCurve but can't give the right orientation right now.
- Attachments
-
- Special_polarpatern.FCStd
- (20.91 KiB) Downloaded 17 times
-
- CaptureA.JPG (23.87 KiB) Viewed 574 times