GDL beginners question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2014-09-03 07:40 PM
Therefore I studied the cookbook 4 chair example of the beginners guide.
I build a chair in metric according to the manual, but when it comes to making everything parametric I get lost, because of the strange variable of the legs of the chair. The legs are made of the cone.
Leg diamater = lsec
But what means lsec/3, lsec/2 and I even saw somewhere lsec/8.
Can somebody explane to me the meaning of the numbers and the /
Thanks in advance

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2014-09-03 10:54 PM
HTH
AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2014-09-04 03:52 AM
Barry.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2014-09-04 05:30 AM
AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2014-09-07 04:32 PM
But why must I divide in three or two parts?
Because before I could take the parametric step, I wrote the script of the chair with cone and block and the dimensions on the X, Y and Z.
CONE 0.5,0.015,0.03,90,90 and the leg was there.
Now I must make this parametric, and then I don't get it anymore
CONE sthit,lsec/3,lsec/2,90,90
Why is that?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2014-09-08 04:30 AM
'lsec' is the radius of the cone (leg) so again you need a length parameter called 'lsec' to control it.
So instead of using actual fixed numbers in your CONE command you now have parameters that the user will be able to see in the object settings and by changing the values in those parameters the user can control the length and width of the chair legs.
In your CONE command example instead of using one parameter for the base width and another for the top width you are simple using the same radius (lsec) but divided by 3 for the base and divided by 2 for the top.
This way you are guaranteed that the base will always be smaller than the top.
The divide by 3 or 2 are arbitrary figures - they could be anything you want to get the desired ratio between the top and base cone radii.
If you use two separate parameters for base and top then you can control them independently so you could make the base and top any width you want.
The '90,90' at the end is just then angle of the base and top ends of the cone - 90 is perpendicular to the axis of the cone length.
Barry.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2014-09-08 05:19 AM
Barry wrote:Had to read that twice
'sthit' is the length of the cone ...


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2014-09-08 05:24 AM
s2art wrote:I had to be careful not to make a typo.Barry wrote:Had to read that twice
'sthit' is the length of the cone ...

Barry.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2014-12-02 11:38 AM
Instead of simply copying the examples I try to understand the BPRIM_ and the formula to make it parametric.
Can someone explain (90-atn((A/2/bbulg))*2 and rad=(a/2/sin(angl) when the chord is 45 cm and the bulge is 8 cm.
I tried to find a tutorial on youtube but that failed sofar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2014-12-02 04:43 PM
I'm not really sure the formula is correct. I did my own study on the subject. There is some info online.
If you are asking about the functions, they are GDL circular functions.
bbulg, angl and rad are variables (or parameters, whatever the case)
atn returns arc tangent(of angle).
sin returns sine(of angle)
human readable formatted formulas would be:
(90 - arcTangentOf( (chordLength/2)/chordDepth ) * 2
rad = (chordLength/2) / sineOf(angleData)
Best regards.