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

porting to version 6.6.0

AP's picture
Forums: 

Dear forum Supervisor,

I am having two issues with porting from version 6.3 to version 6.6.0 first in setting the units and second with the selection in a custom AIS:

1- Units Setup:
My application used to call the units setup at the start to set the base units, it is crashing with Access violation at this point, has the method for setting the units changed. I was using the following code :

UnitsAPI::SetLocalSystem(UnitsAPI_MDTV);

2- Selection in Custom AIS:

I have a custom AIS object, and where it computes the selection is failing.

I noticed the selection system changed where you need to supply a deflection and angle deviation number.

My selections are not working in neutral mode, when I switch to any of the localcontexts it also crashes with an access violation, I have the compute selection code as follows:

switch(aMode){
case 0: //this is neutral mode and not working as shown here
StdSelect_BRepSelectionTool::Load(aSelection,myShape,TopAbs_COMPOUND,0.1,0.1);
break;
case 1: // any of these crashes
StdSelect_BRepSelectionTool::Load(aSelection,myShape,TopAbs_VERTEX,0.1,0.1);
break;
case 2:
StdSelect_BRepSelectionTool::Load(aSelection,myShape,TopAbs_EDGE,0.1,0.1);
break;
case 3:
StdSelect_BRepSelectionTool::Load(aSelection,myShape,TopAbs_WIRE,0.1,0.1);
break;
case 4:
StdSelect_BRepSelectionTool::Load(aSelection,myShape,TopAbs_FACE,0.1,0.1);
break;
}

Do I have my neutral mode correct should it be using TopAbs_COMPOUND or any other kind of shape type, in version 6.3 it was not pointing to anything in neutral mode, only in local context did you had to supply the type.

are there any tips on how to setup the compute selection on version 6.6.0?

Best,

Alex

Forum supervisor's picture

Dear AlexP,
If the issues are critical for you, you may contact us via the Contact Form http://www.opencascade.org/about/contacts/.
We will try to find a solution/workaround acceptable for you.
Best regards
Sergey

jelle's picture

If well defined questions are not even attempted to be answered, wow, than what good is a forum?

Forum supervisor's picture

Dear jelle,
I just want to remind you that we don't provide technical consulting on the Forum.
At the same time we keep a possibility to get a hint or even our professional support
via the Contact Form http://www.opencascade.org/about/contacts/
(if you will decide that you can benefit from our services).
Best regards

jelle's picture

I guess its sometimes hard to draw the line between the two.
That said, its *critical* that such a service exists...

Forum supervisor's picture

Dear jelle,
I guess you have wrong understanding of our position.
For sure it is not hard, we just follow our corporate rules.
We are not providing and not going to provide technical support on this Forum -
clearly we don't want to harm our own business ;-)
Best regards

AP's picture

thanks Jelle..

AP's picture

Hi Sergey,

Thanks for the response, the main purpose of my code is for the open source application openshapefactory.

I am not requesting technical consulting necessarily. I believe there have been changes introduced from version 6.3 to version 6.6.0 regarding how the units are set and how selections are implemented.

Not having public documentation for how to port code from version 6.3 to version 6.6.0 would mean I would wait until I see how someone else implements it to adopt the newer library.

I also agree with Jelle in that some of us contribute to this forum providing technical knowledge to the help of users in need, yet when we require the technical knowledge it seems sometimes it is not as symmetrical.

I wished there would be a separate section of the forum for asking questions to apply on open source projects, and a separate one for commercial applications.

That said thanks anyways for the response. I guess I will have to switch back to version 6.3 meanwhile.

Best,

Alex

jelle's picture

> I guess I will have to switch back to version 6.3 meanwhile

That would be a painful mesure... 6.6.0 is a considerable improvement upon 6.3

Forum supervisor's picture

Dear AlexP,
There is no public or not public documentation how to port from OCCT6.3 to OCCT6.6.0. In other words this task was never processed. You can find list of modifications in corresponding Release Notes of each version stating from 6.3.1 till 6.6.0. This list describes changes regarding to the previous version. It may help you if you will decide to switch to 6.6.0.
Differences between OCCT6.3 and OCCT6.6.0 are very sufficient and without doubt it will be hard and long porting process.
Best regards

AP's picture

Thanks Sergey,

In fact porting for me was extremely easy, just dropped all references to 2d view code.

the only issues have been these two minor problems of setting units which I have fixed by not calling the code that sets the units, and living without selection, which for the most part i don't really use on my code but will be useful to have for future code, its ok Ill give it some thought and see if I can find the fix from examples.

Thanks for the consideration.

Best,

Alex