Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 4
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 3723 times and has 3 replies Next Thread
anandunadkat
Newbie




Joined: Jan 15, 2013
Post Count: 17
Status: Offline
Reply to this Post  Reply with Quote 
Setting Angle

Hi, when i add object to my plan, the angle is not correct, so i try rotate it manually and see what angle figure i get. But when i try input that same angle into the code, and then run it, it wont be displayed with the same angle. Could anyone help me with of to set the rotation of an object correctly in java.
furniture = new HomePieceOfFurniture(catalog.getCategory(7).getPieceOfFurniture(18));
home.addPieceOfFurniture(furniture);
furniture.setAngle(90); //This wont be 90 when i run the code, it will be different!
furniture.setElevation(80);
furniture.setX(bathroomLength- furniture.getDepth()/2 + 4);
furniture.setY(new Float(bathroomLength - bathroomLength/1.19));

[Jan 28, 2013, 3:47:08 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9180
Status: Offline
Reply to this Post  Reply with Quote 
Re: Setting Angle

The angle is in radians.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Jan 28, 2013, 3:54:45 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
anandunadkat
Newbie




Joined: Jan 15, 2013
Post Count: 17
Status: Offline
Reply to this Post  Reply with Quote 
Re: Setting Angle

Thank you for your help, and what about X and Y to set an object.
[Jan 28, 2013, 4:16:34 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9180
Status: Offline
Reply to this Post  Reply with Quote 
Re: Setting Angle

All dimensions in the model are in centimeters
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Jan 28, 2013, 6:11:41 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

    Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads
   
© Copyright 2006-2024 eTeks - All rights reserved