Forum archiveIssue archiveOther usage issues

Archived discussion

C# or Java : which do you prefer with OCC?

Other usage issuesTue, 04/18/2006 - 21:195 replies

Browse this forum
QuestionAuthor

I'm about to dive into an OCC project, and I'm not tied to either language. I've done some work with JNI and also managed C++ wrappers, and don't find either convenient to work with. Which evil do you prefer and what have you had the best success with?

Thanks

Discussion

5 archived replies

Posts are displayed in their archived order.

01Commenter-1

I would suggest you use C++, this makes everything much more simple to access, even if you prefer C# or Java neither is a very good choice for working with OCC.

Commenter-1

02Author

That's probably a good call Mikael. I just hate using (dare I say it?) an outdated language simply because the libraries I need are in that language. Speed and low-level control are of no advantage to me for this project, so Java or C# (languages both actively being improved) would be the way to go if native communication wasn't such a hassle.

03Commenter-2

Hi Author,

Checkout the thread
http://www.opencascade.org/org/forum/thread_8033/

If you need more information, just let me know :)

Commenter-2

04Author

Thanks Jonathan. Which do you consider a better solution, yours or Gerhard's? Both look promising but I like that Gerhard's is automated. I really don't need much of OCC (point, bezier curve, and surface picking; lofting; curve projection onto a surface; and general scene interaction (zoom, pan, and rotate).

My windows machine took a dive a few weeks ago so I'm down to just my powerbook right now. Should have my new win machine up and running in a few weeks and then I can play around with both of your solutions.

05Commenter-2

Hi Author,

"Which do you consider a better solution", thats a difficult one to answer, as I've not seen the way in which Gerhard's has coded his solution, I couldn't realy compare them. I think you are right about the automated method of generating the code, and I am working towards that myself.

I will let you know how I get on, and if you have any queries or comments, then just let me know.

Commenter-2