OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

IGES File support plugin for OpenSceneGraph


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Submission
View previous topic :: View next topic  
Author Message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 10799

PostPosted: Wed Nov 30, 2016 7:16 pm    Post subject:
IGES File support plugin for OpenSceneGraph
Reply with quote

Hi All,

This thread has been kinda dead since I asked the community for help
with the IGES plugin submission that use OpenCascade to load the files
and generates meshes. I've just returned to this submission and had a
bash at adding in missing parts of the CMake support, got this working
enough to compile and link the iges plugin. I had to make some small
tweaks to the code to handle recent changes in OpenCascade as well. I
have checked into OSG git master this new iges plugin. Consider this
a first pass in support, I haven't attempted loading any files. My
hope is the community will be able to dive in a start trying out this
new plugin on their own data and then we can refine it.

Cheers,
Robert.


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Chris Hanson
Guest





PostPosted: Thu Dec 01, 2016 5:16 am    Post subject:
IGES File support plugin for OpenSceneGraph
Reply with quote

Cool  feature.

Nobody I'm working with currently needs this, but it's nice to know it's there and I'll try to test it if I get a client who uses IGES again.

------------------
Post generated by Mail2Forum
Back to top
Alberto Luaces
Guest





PostPosted: Thu Dec 01, 2016 5:30 pm    Post subject:
IGES File support plugin for OpenSceneGraph
Reply with quote

Robert Osfield writes:

Quote:
Hi All,

This thread has been kinda dead since I asked the community for help
with the IGES plugin submission that use OpenCascade to load the files
and generates meshes. I've just returned to this submission and had a
bash at adding in missing parts of the CMake support, got this working
enough to compile and link the iges plugin. I had to make some small
tweaks to the code to handle recent changes in OpenCascade as well. I
have checked into OSG git master this new iges plugin. Consider this
a first pass in support, I haven't attempted loading any files. My
hope is the community will be able to dive in a start trying out this
new plugin on their own data and then we can refine it.

Hi Robert, thanks a lot for including this patch.

I have tried it on linux with OpenCascade Community Edition (OCE) and it
works with some models of mine. However, I had to remove a pair of
lines, shown below: an unused header, XSDRAW.hxx and a "WNT"
preprocessor definition.

Nevertheless, I think that WNT should be necessary on windows, so maybe
it has to be protected with a pair of #ifdef WIN32 for not including it
unconditionally on the rest of the platforms.

I can submit a pull request if you want.

modified src/osgPlugins/iges/ReaderWriterIGES.cpp
@@ -66,7 +66,6 @@
#include <TDF_LabelSequence.hxx>
#include <TDF_ChildIterator.hxx>

-#include <XSDRAW.hxx>
#include <Quantity_Color.hxx>

// osg headers
modified src/osgPlugins/iges/ReaderWriterIGES.h
@@ -26,7 +26,6 @@

/// \brief preproccessor macro required for compilation with open cascade
/// \todo not sure what it does
-#define WNT

#include <TDF_LabelSequence.hxx>



--
Alberto



------------------
Post generated by Mail2Forum
Back to top
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 10799

PostPosted: Thu Dec 01, 2016 5:53 pm    Post subject:
IGES File support plugin for OpenSceneGraph
Reply with quote

Hi Alberto,

Thanks for trying it out and fixes issues that came up. Could you
generate a pull request.

Cheers,
Robert

On 1 December 2016 at 17:30, Alberto Luaces <> wrote:
Quote:
Robert Osfield writes:

Quote:
Hi All,

This thread has been kinda dead since I asked the community for help
with the IGES plugin submission that use OpenCascade to load the files
and generates meshes. I've just returned to this submission and had a
bash at adding in missing parts of the CMake support, got this working
enough to compile and link the iges plugin. I had to make some small
tweaks to the code to handle recent changes in OpenCascade as well. I
have checked into OSG git master this new iges plugin. Consider this
a first pass in support, I haven't attempted loading any files. My
hope is the community will be able to dive in a start trying out this
new plugin on their own data and then we can refine it.

Hi Robert, thanks a lot for including this patch.

I have tried it on linux with OpenCascade Community Edition (OCE) and it
works with some models of mine. However, I had to remove a pair of
lines, shown below: an unused header, XSDRAW.hxx and a "WNT"
preprocessor definition.

Nevertheless, I think that WNT should be necessary on windows, so maybe
it has to be protected with a pair of #ifdef WIN32 for not including it
unconditionally on the rest of the platforms.

I can submit a pull request if you want.

modified src/osgPlugins/iges/ReaderWriterIGES.cpp
@@ -66,7 +66,6 @@
#include <TDF_LabelSequence.hxx>
#include <TDF_ChildIterator.hxx>

-#include <XSDRAW.hxx>
#include <Quantity_Color.hxx>

// osg headers
modified src/osgPlugins/iges/ReaderWriterIGES.h
@@ -26,7 +26,6 @@

/// \brief preproccessor macro required for compilation with open cascade
/// \todo not sure what it does
-#define WNT

#include <TDF_LabelSequence.hxx>



--
Alberto




------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Alberto Luaces
Guest





PostPosted: Thu Dec 01, 2016 10:48 pm    Post subject:
IGES File support plugin for OpenSceneGraph
Reply with quote

Robert Osfield writes:

Quote:
Hi Alberto,

Thanks for trying it out and fixes issues that came up. Could you
generate a pull request.


Done!

--
Alberto



------------------
Post generated by Mail2Forum
Back to top
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 10799

PostPosted: Fri Dec 02, 2016 8:05 am    Post subject:
IGES File support plugin for OpenSceneGraph
Reply with quote

Thanks just merged PR.

On 1 December 2016 at 22:47, Alberto Luaces <> wrote:
Quote:
Robert Osfield writes:

Quote:
Hi Alberto,

Thanks for trying it out and fixes issues that came up. Could you
generate a pull request.


Done!

--
Alberto




------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Submission All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Please test OpenSceneGraph master in ... robertosfield General 43 Thu Mar 23, 2017 11:23 am View latest post
No new posts Bug in 3.4.0 when exporting .osgx file? wernerM General 3 Tue Mar 21, 2017 1:18 pm View latest post
No new posts More FBX map support Farshid Lashkari Submission 0 Wed Mar 15, 2017 6:35 pm View latest post
No new posts Covert and use 3ds Max scene to OpenS... lucia General 0 Mon Mar 06, 2017 9:19 am View latest post
No new posts Guidance on zip-plugin fix SMesserschmidt General 0 Thu Feb 16, 2017 1:59 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP