Jump to content
Developer Wiki and Function Reference Links ×

Scaling groups in 3D?


Recommended Posts

For a single object, I can 'Set3DInfo', but that does not work for groups. The 'Scale' call is 2D only. Is there a simple way to scale a group of objects in 3D? Am I missing something glaringly obvious once again?

Luckily, 'Get3DInfo' does work with groups, so I have a start. I can then enter the group and scale & move each component proportionally one at a time ? but I'd rather not.

Link to comment

Hi Petri,

There are two undocumented commands, but they work on individual objects.

HScale2D(h: HANDLE; centerX, centerY, scaleX, scaleY: REAL; scaleText: BOOLEAN);

HScale3D(h: HANDLE; centerX, centerY, centerZ, scaleX, scaleY, scaleZ: REAL);

HScale3D does not work for Groups of 3D objects.

For 3D Groups I scale from the top with HScale2D using Scale_X and Scale_Y, then from the front using Scale_X=1 and Scale_Z. A Redraw will be needed to see the results.

HTH,

Raymond

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...