How to make custom polygons in java

I need to make a 3d polygon i think you use geometry or something but i know the angles i need and the lengths of the sides so i just need to make it. if you have any ideas i would apreacheate it. sorry for my spelling

Try the GeometryInfo class.
http://download.java.net/media/java3d/javadoc/1.3.2/com/sun/j3d/utils/geometry/GeometryInfo.html

Similar Messages

  • How to make "Levels" in simple java game

    I just wanted to know if anybody knew how to make "Levels" in a java game. In my case, it is to change two polygons that are used in the background. I think you have to use an array of some kind, but i dont really know.
    Here is my source, the polygons are by the massive ///////// areas.
    I cut out the majority of the program, because it was too long.
    public class collision extends Applet implements MouseListener,MouseMotionListener
        private  Image rickImage,mazeImage;
       Image Buffer;
       Graphics gBuffer;
       int x, y;
       int[] LeftWallX = {0,204,204,149,149,162,162,243,260,235,259,232,260,230,207,207,0};
       int[] LeftWallY = {500,499,402,402,341,324,227,191,157,141,135,123,116,109,86,1,1};
       //int[] PlayAreaX = {204,204,149,149,162,162,243,260,235,259,232,260,230,207,207,263,263,245,282,262,274,257,273,250,184,184,170,170,208,216,216};
      // int[] PlayAreaY = {499,402,402,341,324,227,191,157,141,135,123,116,109,86,1,1,86,103,115,129,138,147,155,201,230,323,340,384,384,402,499};
       int[] RightWallX = {500,500,263,263,245,282,262,274,257,273,250,184,184,170,170,208,216,216};
       int[] RightWallY = {500,0,1,86,103,115,129,138,147,155,201,230,323,340,384,384,402,499};
       boolean mouseInside, collide;
       boolean rolled = false;
       boolean msg = true;
       int sX=204,sY=490,sW=12,sH=9;
       //Declare the rectangles
       Rectangle  movingRect,finshBloc,startBloc,oopsBloc;
       //Declare the polygons
       Polygon leftWall,playerArea,rightWall;
            ///Initiate
            public void init()
                 rickImage = getImage(getDocumentBase(), "rick.jpg");
                 mazeImage = getImage(getDocumentBase(), "maze1.jpg");
                 collide=false;
                 Buffer=createImage(getSize().width,getSize().height);
                 gBuffer=Buffer.getGraphics();
                 rightWall=new Polygon(RightWallX,RightWallY,18);
                 playerArea= new Polygon(PlayAreaX,PlayAreaY,31);
                 leftWall= new Polygon(LeftWallX,LeftWallY,17);
            public void paint(Graphics g)
                 drawStuff();
                 g.drawImage (Buffer,0,0, this);
    */

    I'm not exactly sure in your case what you are trying to accomplish. If all you want to do is make new polygons for your levels then you will simply need a Vector of type level (or polygon). Store multiple levels/polygons in that vector. This can be done many ways, probably the most efficient way would be to create a class Level of sorts and create each level object from there. This way you have all your levels stored into that vector.
    I have made programs where the levels/mazes are randomly generated based on certain parameters (this way you would not need to define any specific level). This can be done inside the Level class and added to the vector so that when a level is randomly generated there are literally infinite possibilities. I would suggest posting all your code or at least a breakdown UML diagram of what is going on in your entire program.

  • How to make custom ringtones in iOS 5.1

    How to make custom ringtones in iOS 5.1.
    I was on iOS 4.3 before and i used to create the AAC version and then change the file extension & that file would come up in the Rimtones in iTunes, After the iOS 5.1 i m unable to add the custom ringtones to my iPhone from iTunes.

    Was having this problem too.  Discoverd that that there is a "tones" top menu next to "music" under your iphone settings.  I'm not sure if this is new or not (I am a new iphone owner), but if you check on sync tones they will download.

  • How to make plsql parser around java method

    can someone tell me how can i move Jdeveloper java method into oracle DB (how to make plsql parser around java method). Is this possible becouse in google i can not find any good example how to make this.

    Hi,
    I think you are talking about Java Stored Procedure (?)
    Look here, http://download.oracle.com/docs/cd/E11882_01/java.112/e10588/toc.htm
    Regards
    Peter

  • How to make custom binary module and add to powershell?

    How to make custom binary module and add to powershell?
    I wish to add 'Microsoft.SharePoint.Client.dll' in powershell as binary module so I can use its intellisense.

    Hi Biraj,
    I replied to this in other thread
    https://social.technet.microsoft.com/Forums/en-US/a13c9cc8-7d53-46b5-b5bb-65404db2d347/how-to-make-intellisense-enable-in-powershell-in-csom-for-sharepoint-online?forum=sharepointdevelopment
    Kind Regards,
    John Naguib
    Senior Consultant
    John Naguib Blog
    John Naguib Twitter
    Please remember to mark this as answered if it helped you

  • How to make custom start end shapes for stroke (arrowheads)...

    hello...
    Indesign cs4 have nice start end stroke shapes like arrowheads, circles, squares...circles is clear, without fill. I need fill in it.
    How to make custom shapes or edit existings start/end shapes to functioning like original provided with indesign?
    Maybe illustrator cs4 have this?

    There's no way to edit line endings in ID. You would have to make a compound path from a line with no ending and a second path or shape for the end.

  • How to make destop application using java

    how to make destop application using java
    i mean to say when we double click on the exe file the program should lounch the application
    for windows

    when i double click ii got the msg
    Failed to lad main class manifest attribute from
    x/x/xyz.jar
    what exatly it meansIt means that your Manifest.MF for the JAR file should contain an attribute called Main-Class pointing to a class containing the main() method.
    Something like this should be present in META-INF/Manifest.MF :
    Main-Class: MyApplicationMain

  • How to make custom forms inside EBS R12

    I want to make some additional forms to support side processes and embed the custom forms in E-Business Suite R12. Can I develop these custom forms using Java Standard Edition 6? Or do I need specific tools to achieve this? thanks

    I am not aware of any Java tool that can be used for customization apart from JDeveloper for OAF.
    Configuring JDeveloper For Use With Oracle Applications 11i and R12 [ID 330236.1]
    How to find the correct version of JDeveloper to use with eBusiness Suite 11i or Release 12.x [ID 416708.1]
    Thanks,
    Hussein

  • How to make custom icc color profile work as default for all users?

    Hi!
    I've calibrated two monitors for the machine running Mavericks OS X. I've managed to move these custom icc color profiles to ColorSync folder in HDD Library, so that that they are available for all the users. However, I cannot figure out how to make these icc profiles work as default profiles for all users and not only the one I used to calibrate monitors.
    Is there a specific place I have to put custom icc profile to make it system default?
    Thank you!

    If you put the profiles in the root /Library/ColorSync/Profiles/ folder, then each user needs to select them in their account. There isn't a way to apply them globally so each account automatically comes up that way.

  • Need details on how to make custom ABAP report archive enabled

    Hi All,
    We are working in our project to make custom reports as archive enabled so that they can read archived data.
    Need some information on the below queries.
    1.Is there any function module to read selected data from archive file? For example i don't want to read the whole BKPF table data from archive file instead want to get belnr and bukrs only.
    2. What are the perfromance measure which can be taken while making an existing program archive enabled
    3. Important archiving tables which can help for the above.
    4. When i use the function module "Archive_open_for_read' then system displays a pop up to select the archive files based on the archive object.
    Considering that all the reports are run in background how do i make sure that in background run all the archive files are selected and processed.
    Thanks in advance for your valuable suggestions...
    Regards/Ajay

    Hi Ajay,
    1.  You have to create a separate field catelogus and AIS according to your requirement with the required fields you want . Because the standard structures and field catelogues contains many fields from all tables. So before doing the read operation you have to deactivate the standard AIS and activate your newly created AIS .
    2. Can you give some more details for this question to be answered.
    3. The important archiving tables used are ARCH_IDX,ARCH_RPRG,ARCH_DEF.
    4. While scheduling the Read process in batch mode , it will give you three criterias to be entered.
         . Spool Parameters
         (ii). Start date
         (iii). Archive selection of files.
        Unless you enter values for any one of these options , You cannot execute the batch job.
    Hope this would help you.
    Regards - Swarna.

  • ThinClient t5565z ThinPro Zero how to make custom localizati​on

    Does anyone know how to make a custom language pack for thin clients?
    All I managed is to edit *.mo and *.qm from EasternLanguagePack and pack it into a xar archive, so I was able to see russian text if I choose for example Japanese. But the problem is that this xar is installed every time a thin client is rebooted. And it is not convenient to choose Japanese (or say French) to get Russian translation.
    Any information on creating translations for thin clients would be helpful.
    We tried to ask russian HP office (becuase we need russian translation), but they refused to help.

    Hi,
    Take a look here:
    Re: Fill empty cell with '0'
    Steps to fill empty cell with '0':-
    1. Select intersection cell in cross tab.
    2. Go to properties tab.
    3. In Text Format section, click on Number Format button.
    4. Select Format type is 'Number' and check the Custom check box.
    5. Enter 0 in all text boxes(Positive, Negative, Equal to zero, and Undefined).
    6. Click ok.
    Now you can see 0 in the Emply cells of cross tab.
    If you want decimal values, enter 0.00 in Positive box.
    Edited by: Swarna K on Mar 12, 2011 9:25 AM

  • How to make custom ecards

    Hey, anyone have suggestions for how to make a custom ecard with my photos? I tried 3 services found (one free, two not) online, but they wouldn't edit the photo to fit the card, one imports it with the wrong orientation, (vertical instead of horiz). Know of one that is compatible with Mac. these don't seem to be. Thanks for any help

    Hi Biraj,
    I replied to this in other thread
    https://social.technet.microsoft.com/Forums/en-US/a13c9cc8-7d53-46b5-b5bb-65404db2d347/how-to-make-intellisense-enable-in-powershell-in-csom-for-sharepoint-online?forum=sharepointdevelopment
    Kind Regards,
    John Naguib
    Senior Consultant
    John Naguib Blog
    John Naguib Twitter
    Please remember to mark this as answered if it helped you

  • How to make a table in java without using GUI??

    how can i make a table in java without usinf GUI, just simple codes??
    NAME ID NUMBER ADDRESS STATUS

    If you simply want to store them internally, you don't want to use a table.
    Make a simple class with properties id, name, number, address, status. Then create a Hashtable that indexes instances of the class by id or some other property.

  • How to make Connection Pooling in JAVA

    Dear Members
    I want to know that how can i make connection pooling in java and also how can i use that pool in my jsp/servlet application.
    Plz Describe in Detail.
    Thanks
    Vasim

    vasim_saiyad2000 wrote:
    Dear Members
    I want to know that how can i make connection pooling in java and also how can i use that pool in my jsp/servlet application.
    Plz Describe in Detail.
    Thanks
    VasimAs the previous poster is trying to suggest, the server you use will have datasource and connection pooling support. so look up in the manual how to set it up, or do a google search. For example if you use Tomcat, look here:
    http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html

  • How to make customer inactive in R12 receivables?

    Does anyone know how to make a customer inactive in R12 receivables? I can find where to make the account that is linked to the customer inactive but not how to amend the status of the customer itself. I am sure that it is something simple that I am missing. Any assistance would be greatly appreciated. Thanks

    Under Data Librarioan responsibility go to Data Quality --> Party Maintenance, search for your party then change the status. Just remember you will not be able to search for Inactive party (untill you re-activate the party again). And more important question: are you sure you want to inactivate a party? Does Oracle recommend it?
    Oleg

Maybe you are looking for

  • Can't delete file from LR, requires password from finder Mac OS

    I have an older Powermac running OSX 10.5.8. I store all of my images under the same folder on the same external hard drive. For some reason, and this has never happened before, has always functioned normally before this, I don't know why, images can

  • Error while trying to read more number of data via Serial port

    Hi All, I'm newbie to Serial Port programming. I'm trying to read data from dos based system which is sending 150 characters (including) at a time. That time my programm was fine but now they increased the length of the characters 300, now my program

  • Networking on Ubuntu VM stopped functioning after latest VMWare tools upgrade

    when configuring the latest VMWare tools, I receive the following error: "The vmxnet driver is no longer supported on kernels 3.3 and greater. Please  upgrade to a newer virtual NIC. (e.g., vmxnet3 or e1000e)" I have followed instructions on a few di

  • I accidently deleted the music off my ipod, how do i get it back?

    after plugging my ipod into a computer, i had to eject it but it wasnt found on the computer. after manually ejecting it the music disappeared. when i look at my ipod it says there is no music but under settings it says i still have the same amount o

  • Response ESB

    Hi, If the information in Oracle SOA 10g under AIA is to be follow the following flow synchronously Source -> Requestor ABCS -> xEBS -> Provider ABCS -> Target -> Provider ABCS -> ???(EBS) -> Requestor ABCS -> Source should i use the same EBS for the