Search found 16 matches

by rafax
Thu 7. Oct 2010, 14:10
Forum: Programming Help
Topic: Choosing between SceneGraphComponent
Replies: 3
Views: 675

Re: Choosing between SceneGraphComponent

Thanks for the reply, it's not working either. It gives always 0. I guess because the current picked sgc doesn't have a child. What is strange is whenever I pick one sgc it knows exactly which sgc i'm clicking with the right transformation matrix ( with the getLenght()-2 code). Then, when I use the ...
by rafax
Thu 30. Sep 2010, 20:02
Forum: Programming Help
Topic: Choosing between SceneGraphComponent
Replies: 3
Views: 675

Choosing between SceneGraphComponent

Hello, My problem is the following: for example, I have a cube and I create a copy by translation by 1 for example. It will be done by a click. Now, if I wanna do the same thing with my new cube (translation), it still acting on the old one. I already use the following line but now luck double pos [...
by rafax
Wed 22. Sep 2010, 15:31
Forum: Programming Help
Topic: How to load a geometry (.obj, .wrl, .jvx, ... )
Replies: 9
Views: 1525

Re: How to load a geometry (.obj, .wrl, .jvx, ... )

Hi there,

In fact the brut casting (IndexedFaceSet) doesn't even work. Does anyone has issues for getting IndexedFaceSet from the given Obj?

Regards
by rafax
Wed 8. Sep 2010, 12:20
Forum: Programming Help
Topic: How to load a geometry (.obj, .wrl, .jvx, ... )
Replies: 9
Views: 1525

Re: How to load a geometry (.obj, .wrl, .jvx, ... )

Hi, I don't know if you are familiar with the old Half edge data structure of JReality, actually I can not use a converter from the ifs to the heds, so, I can not process any obj. Input input = Input.getInput("6prism.obj"); ifset= (IndexedFaceSet) Readers.read(input).getGeometry(); heds = Converter....
by rafax
Wed 25. Aug 2010, 12:14
Forum: Programming Help
Topic: How to load a geometry (.obj, .wrl, .jvx, ... )
Replies: 9
Views: 1525

Re: How to load a geometry (.obj, .wrl, .jvx, ... )

Hi,

Instead of ScenegraphGomponent, is it possible to get an indexedFaceSet of the geometry?

Regards
by rafax
Wed 25. Aug 2010, 11:00
Forum: Programming Help
Topic: How to load a geometry (.obj, .wrl, .jvx, ... )
Replies: 9
Views: 1525

Re: How to load a geometry (.obj, .wrl, .jvx, ... )

Thank you! The problem is only that, one need to load it from file via a javacode. I think there is a way to load it directly from the interface and the javacode will get the geometry from the viewer automatically for processing. In this case, we can process any geometry we want without specifing th...
by rafax
Wed 18. Aug 2010, 11:24
Forum: Programming Help
Topic: How to load a geometry (.obj, .wrl, .jvx, ... )
Replies: 9
Views: 1525

How to load a geometry (.obj, .wrl, .jvx, ... )

Hi,

To view a geometry, we can just use the interface and open it. But, how can I load it from my program and do some processing on it?

Regards
by rafax
Mon 17. May 2010, 20:37
Forum: Installation
Topic: Could not find the main class????
Replies: 1
Views: 985

Could not find the main class????

Hello, I got the following errors, may be someone could help Exception in thread "main" java.lang.NoClassDefFoundError: faniry/Hypercube Caused by: java.lang.ClassNotFoundException: faniry.Hypercube at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivile...
by rafax
Wed 5. May 2010, 14:05
Forum: Programming Help
Topic: IndexfaceFactory with n-gon mixed with quadrilateral
Replies: 4
Views: 1187

Re: IndexfaceFactory with n-gon mixed with quadrilateral

Does the gluing process merge vertices and edges?
by rafax
Tue 4. May 2010, 20:25
Forum: Programming Help
Topic: IndexfaceFactory with n-gon mixed with quadrilateral
Replies: 4
Views: 1187

IndexfaceFactory with n-gon mixed with quadrilateral

How can I set up the face indices if my geometry containing n-gons and quadrilaterals glued each other. The problem is that the faceIndices for the quadrilaterals have 4 columns. But those of the n-gones have n columns, so I don't know how to set the indexFaces to be in one array in this case. Regar...
by rafax
Tue 4. May 2010, 16:46
Forum: General jReality Discussion
Topic: Drawing two object at the same time
Replies: 1
Views: 1940

Re: Drawing two object at the same time

I think I solve it!! :wink:
by rafax
Tue 4. May 2010, 16:30
Forum: General jReality Discussion
Topic: Drawing two object at the same time
Replies: 1
Views: 1940

Drawing two object at the same time

I'm pretty new in Jreality but i would like to know how to plot two geometry at the same window?

Regards
by rafax
Sat 17. Apr 2010, 13:23
Forum: Installation
Topic: First run, first error
Replies: 2
Views: 1030

Re: First run, first error

Thank you very much

regards