For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

Help on java development

giuseppe's picture
Forums: 

Does anybody can explain me the steps to visualize a simple shape using occ with java ?
with c++ it is easy but with java I don't find any suggestion.
I'm not able to find help in java samples too.

Regards

Giuseppe

Ashesh Vashi's picture

Can you please explain, What exactly you want to do in detail?
Because creation and visualization of shapes are already given in samples..

Regards,

Ashesh

giuseppe's picture

Yes in samples there are a lot of things but they are too complex from a didactic point if view.
I need only a simple example of java application that show a shape (for example a sphere or whatever you want..) with the possibility to zoom, pan and rotate.
In this way I can learn the basic way to set up a visualzation\interaction pipeline using java.
The examples are divided into too much files and I'm not able to understand the basic concepts they are based on.

Thank you in advance for your interest in my question.

Regards,
Giuseppe

giuseppe's picture

Ashesh Vashi's picture

Can you please explain, What exactly you want to do in detail?
Because creation and visualization of shapes are already given in samples..

Regards,

Ashesh

giuseppe's picture

Bob Spashy's picture

Hi Giuseppe,

As Ashesh said there are a lot of samples in the OCC library, I am also impressed by the jCAE tool which also do some visualization on top of OpenCascade (see snapshots on jcae.sf.net).
Probably there are some more people using java as well may be some of them can be found on www.salome-platform.org.

cheers
Bob

giuseppe's picture

Hi Bob,
thank you for your suggestion.
I have already tried jcae some time ago.
I have also installe salome on my linux machine.
There is also a Linux installation (see http://www.caelinux.com/CMS/) that uses Salome (pre and post) and CodeAster as solver.
My target is to develop a finite element software with easy pre-post features. By now I have developed some java code and I can run simulations, create the mesh and see the results (I used public domain libraries, solvers, meshers and postprocessing tools).
Now, after a lot of time, i succeded in compiling some OCC java wrappers (on Linux and windows).
I know that on OCC libraries there are a lot of java samples: the problem is that thei are too complex to begin because all the examples are linked together.
If i need to understand how to develop a java application for importing and visualizing , for example a step file, I can assure you that with the java examples is very difficult to understand something.
With vtk the examples are very easy to understand: the OCC samples instead are a real complex application (not useful for didactic purposes).

Regards

Giuseppe

Gukho Gil's picture

Hello Giuseppe

Please help me!!!
I'm a student in Korea.
I have to implement simple OpenCascade sample programs like you in Java on Windows XP.
I have a little idea about java, but I have to create it.
I want to know how you created samples.
What should I do?

Wolud you explain or mail me?

Please Help me~~~!!!!!!!!!!!!!!!!!!!!!!!!!!

Regards

==Gukho==
huntkil@chonbuk.ac.kr

Gukho Gil's picture

Hello Giuseppe

Please help me!!!
I'm a student in Korea.
I have to implement simple OpenCascade sample programs like you in Java on Windows XP.
I have a little idea about java, but I have to create it.
I want to know how you created samples.
What should I do?

Wolud you explain or mail me?

Please Help me~~~!!!!!!!!!!!!!!!!!!!!!!!!!!

Regards

==Gukho==
huntkil@chonbuk.ac.kr

Gukho Gil's picture

Hello Giuseppe

Please help me!!!
I'm a student in Korea.
I have to implement simple OpenCascade sample programs like you in Java on Windows XP.
I have a little idea about java, but I have to create it.
I want to know how you created samples.
What should I do?

Wolud you explain or mail me?

Please Help me~~~!!!!!!!!!!!!!!!!!!!!!!!!!!

Regards

==Gukho==
huntkil@chonbuk.ac.kr

Gukho Gil's picture

Hi Giuseppe

I'm sorry about this reply, but I want to know how you made java examples.

please!! please!!

Would you explain me?

I'll wait for your response.

regards

gukho

giuseppe's picture

Dear Gukho,
simply download and istall the java virtual machine from SUN site.
Download and install the last Open cascade distribution.
That's all: on winXP the java samples should work.

Regards

Giuseppe