Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Drawing a simple cuboid ??
Message
From
22/03/2003 08:55:32
 
 
To
22/03/2003 08:41:05
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00768890
Message ID:
00768898
Views:
23
Albert, to change the perspective of the cuboid add the following directly after the calculation for the nXdis and nYdis values and before the actual drawing commands:
* To change the perspective of the cuboid change the sign of nXdis and/or nYdis

nPerspective = 1

DO CASE
CASE nPerspective = 1
  
  * Up and to the right

  * Leave as is as that would be the default.
  
CASE nPerspective = 2

  * Down and to the right
  
  nYdis = nYdis * -1
  
CASE nPerspective = 3

  * Down and to the left
  
  nXdis = nXdis * -1
  nYdis = nYdis * -1
  
CASE nPerspective = 4

  * Up and to the left
  
  nXdis = nXdis * -1
  
ENDCASE
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Reply
Map
View

Click here to load this message in the networking platform