|
How to zip a text file in gzip format
|
|
|
|
|
|
Hello Friends
I am in a very critical situation.I am having some float values and the the method I am using to scale is setScale that accepts only vector3d(int,int,int).So how can i create vector3d by using float values.Or is there any other way to create vector3d with flaoting values?
Thanks & Regards
Yogesh
|
|
|
|
|
As usual, your question is so vague that it is almost imposible to give an accurate reply. You should really try to give much more information about the context of your question. Here, we don't have any clue what you might be talking about (unless by guessing)...
From which "library" is this vector3d class coming from ? Why are you using float values if you need to express positions in integers and not in float values ? From where are those float values coming from ? etc...
|
|
|
|
|
Hello Cedric
I am sorry If my questions are too much vague for you but I try my best to explain from myside.I guess you might be some senior member here so I respect you.Is that reason that some of mine last questions were not answered by anyone?
Actually,I got the answer to my question .but Anyway I will Explain you more in details.vector3d is from java3d Library.And I am getting float values some obj file format.Ans setScale is function of Transform3d.And SetScale are of types, one accepts float and other accepts vector3d.I was getting flaot values so my question was how to create a vector3d from flaot values.
But It solved After more googling.
AnyWay,I appreciate for your valuable time in my thread and even for answering to me .
Thanks Once Again
Regards
Yogesh Sikri
|
|
|
|
|
yogeshs wrote: But It solved After more googling
Maybe, just maybe, you should try google BEFORE cp.
Panic, Chaos, Destruction.
My work here is done.
or "Drink. Get drunk. Fall over." - P O'H
|
|
|
|
|
It seems like you are trying to use a Java library for 3D programming. If that is the case, then there would most definitely be a class called FastMath in a package called math somewhere. You can use the FastMath.round(...) method within that class to convert the float values to an int without much overhead. This will enable you to then pass those values to the Vector3D class.
Hope this helps. I would have been of further help if I only knew what libraries you were using. The beginning of knowledge is the fear of God
|
|
|
|
|
Hi Everybody,
I am trying to search for a free source Java project or application which is currently sequential and could be converted to multithreaded code.Any suggestion on which application could be converted to concurrent Java code.
Thanks in advance for your help
Deed
|
|
|
|
|
Write a program that does something ten times.
Convert said program to do it once on each of ten threads.
Panic, Chaos, Destruction.
My work here is done.
or "Drink. Get drunk. Fall over." - P O'H
|
|
|
|
|
Thank you Nagy for the quick response.
I was actually looking for a bigger implementation which I could convert to concurrent code for Masters project.I am right now looking into sourceforge to see if there are any projects there..Any suggestions would be appreciated.
Thanks a lot
Deed
|
|
|
|
|
Hello guys.......im newbie in java. How can we conver a string to integer if it contains more than one numbers like this.......
String str = "12 23 4 35 56 ";
Do you see it has 5 numbers in one string var. How can we do this??
|
|
|
|
|
Do you need five integers or one. You could split your string, or you could remove spacesLet there arise out of you a band of people inviting to all that is good, enjoining what is right, and forbidding what is wrong: They are the ones to attain felicity.
Āli-'Imrān (The Family of Imran), 104.
|
|
|
|
|
thanx ..........i can use split methd.
|
|
|
|
|
Hello Friends
I am deleting a file after loading it but some time if any exception occur or some other crash then that file is not deleting bcoz application crashes first.Is there any way to know when application terminates so that i can delete that file or is there any way that will delete my file inspite of any crashes or any other problem?
Any Ideas?
Thanks In Advance.
Regards
Yogesh
|
|
|
|
|
If I understand you correctly, the file should be deleletd by the app when it has finished using it but if the app prematurely exits due to an exception then the file does not get deleted.
0. If an exception is being thrown then it should be caught and managed.
1. There should be a single, safe exit point from the application.
2. At start up, can you check for already processed files and delete them? This may be the best solution.
Panic, Chaos, Destruction.
My work here is done.
or "Drink. Get drunk. Fall over." - P O'H
|
|
|
|
|
Hello Nagy
U understand my problem absolutely right.And i tried ur first way by putting it in finally and It is fine.
Thanks A Lot for your valuable reply.
Regards
Yogesh
|
|
|
|
|
Hello guys...im new to java envirnoement. How can we set the path variable permanently so that we dont have to do it again and again ??
|
|
|
|
|
Which path variable, and where do you want to set it? Windows, Linux, Solaris? Please clarify your question. txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
thanx for ur time....i have already done it.
|
|
|
|
|
Muzammil Saeed wrote: .i have already done it.
Well, maybe you could post your answer so others may benefit?txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Richard MacCutchan wrote: Well, maybe you could post your answer so others may benefit?
well guys...i did not check this post so i did not know that you wanted my Anser.....OK
Here...if you installed jdk on default location then most probably path for java compiler javac is C:\Program Files\Java\jdk1.6.0_18\bin.This is my path, you use your own.
1....right click the My Computer icon on desktop
2....click the Advanced tab
3....At left bottom, click Envirnoment Variables.
4....Down there, you will find System Variables.....click New.
5....Type variable name Path and variable value ....path mentioned above.click OK.
Thats all.....
what is this all about??.
when you use the command promt then you compile the program using javac...you must set the path first using set path command...now if there, you exit from command prompt, then each time you have to set this path if you use command prompt to compile you program. This method sets that path permanently.
Hope made you clear.
|
|
|
|
|
Hi,
I'm guessing you're referring to the JAVA_HOME environment variable, if you're running Windows XP you can set this permanently using the System Properties (right-click This Computer and select properties), then on the Advanced tab click the Environment Variables button.
Hope this helps,
Fredrik Bornander
|
|
|
|
|
|
You may need something like this[^]. txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Hello Friends
I am creating a view in which I am creating a shape3d object with the help of geometryInfo Class(using verts,faces).After that I am adding each shape object to BranchGroup and that branchgroup to sceneBase.
Now the Problem is that If I am having Single object in my file then it is showing up in viewer but if file contains two object then only one object is showing up in viewer but all other info of second object is getting stored.
Give some IDeas.
Thanks
Yogesh Sikri
|
|
|
|