3D stretchable hotspots
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2010-10-12 03:04 PM
2010-10-12
03:04 PM
2) I want a 3D pole element with Ellipse at base and circle at top, how should we script it?
Dhaval Shah
Upto AC 22
iMacs and MacBookPros: Mac OS X (10.6 to 10.12, Intel core 2 Quad to i5, i7, 8 GB to 16GB)
Win 10, AMD Opteron 6-Core x 2, 16GB, FirePro W4100 2GB
& ThinkPad E550
& i7, 8GB
Upto AC 22
iMacs and MacBookPros: Mac OS X (10.6 to 10.12, Intel core 2 Quad to i5, i7, 8 GB to 16GB)
Win 10, AMD Opteron 6-Core x 2, 16GB, FirePro W4100 2GB
& ThinkPad E550
& i7, 8GB
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2010-10-12 09:40 PM
2010-10-12
09:40 PM
First you should look at the GDL Reference Guide available as a pdf from your Help menu.
3D hotspots are written with three lines of code as follows:
var stretchable in the Z direction. This parameter must also be present in your parameter table. Also note that each hotspot has a unique id number. I find it good practice to define unid=1 at the begining of my scripts and then the the notation
As for the sphere/pole/ellipse there are many ways. Look at the SPHERE, ELLIPS and CYLIND commands for a start.
HTH
3D hotspots are written with three lines of code as follows:
HOTSPOT 0, 0, 0, unid, var, 1+128 : unid=unid+1 !base HOTSPOT 0, 0, var, unid, var, 2 : unid=unid+1 !move HOTSPOT 0, 0, -1, unid, var, 3 : unid=unid+1 !referenceThis bit of code will create a hotspot to control the parameter
: unid = unid+1after each hotspot definition to avoid getting duplicate hotspot ids.
As for the sphere/pole/ellipse there are many ways. Look at the SPHERE, ELLIPS and CYLIND commands for a start.
HTH
Erich
AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2010-10-13 03:27 PM
2010-10-13
03:27 PM
dhaval7shah wrote:Dhaval:
2) I want a 3D pole element with Ellipse at base and circle at top, how should we script it?
You should look at the RULED command, page 92 of the GDL Reference Guide, this creates a form with different polygons on each end.
David
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC28 USA • Mac mini M4 Pro OSX15 | 64 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
www.davidmaudlin.com
Digital Architecture
AC28 USA • Mac mini M4 Pro OSX15 | 64 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2010-10-13 08:40 PM
2010-10-13
08:40 PM
Thanks a lot Erich and David.
Dhaval Shah
Upto AC 22
iMacs and MacBookPros: Mac OS X (10.6 to 10.12, Intel core 2 Quad to i5, i7, 8 GB to 16GB)
Win 10, AMD Opteron 6-Core x 2, 16GB, FirePro W4100 2GB
& ThinkPad E550
& i7, 8GB
Upto AC 22
iMacs and MacBookPros: Mac OS X (10.6 to 10.12, Intel core 2 Quad to i5, i7, 8 GB to 16GB)
Win 10, AMD Opteron 6-Core x 2, 16GB, FirePro W4100 2GB
& ThinkPad E550
& i7, 8GB