OCCT object creation from the step file data

Hi,
I am reading the step file and getting the model.
But in this model some parts are getting identified as assemblies and some assemblies as part.
In the source app of the step file the model tree is looking different and in OCCT app it is different.
I want to check how OCCT is reading the step file data and how it is creation the shape objects from this data.
How OCCT is deciding the part and assembly objects from step data?
I am trying to find the exact code and see if I can do something to make the model tree same?

Dmitrii Pasukhin's picture

Hello, can you share STEP file and the initial structure.

For making your own research please look into STEPCAFControl_Reader::Transfer and STEPCAFControl_Reader::AddShape

Best regards, Dmitrii.

Vikas Beske's picture

Hi Dmitrii,

I tried exploring the StepCAFControl_Reader::Transfer and reached to the function Transfer_ProcessForTransient::Teansfer.
Is Transfer_ProcessForTransient::Teansfer is the function where we are creating the shapes from step data?
If not can you tell me the exact function where we are deciding the objects as parts and assemblies?

Dmitrii Pasukhin's picture

According your goal you don't need to analyze deep code. You need only XCAF part. Please check only classes into StepCAFControl folder and XCafDoc_ShapeTool.

Best regards, Dmitrii.

Vikas Beske's picture

Thanks
I will check and get back to you

Vikas Beske's picture

Hi Dimitrii,

I have a step file which is giving the different model tree when converted to GLB file using OCCT on Linux system.
Want to share that with. Where can I send this. Please let me know

Dmitrii Pasukhin's picture

Hello, conversion from BRep into Mesh leads to changing tree. You need to check the intial XCAF tree from STEP.

If your file is commercial (private), I don't think we can work with it without some kind of legal arrangement.

Best regards, Dmitrii.

Vikas Beske's picture

Hello

Can you help me with this?

Vikas Beske's picture

Hi,
Do you mean we have to check in the STEPCAFControl_Reader::Transfer function where we are transferring the step data to TDocStd_Document object.
Here we have to see the XCAF tree right?

Vikas Beske's picture

Hi Dmitrii,

Can you tell me how we can proceed for the legal arrangements for sharing models?

Best regards,
Vikas

Vikas Beske's picture

Hello Dmitrii,

Can you give any update on this?

Dmitrii Pasukhin's picture

Hello, this forum just for public non-commercial usage. For commerrcial you need to get support contract.

Unfortunately, I am unable to help you with this. Please contact with client-support service(Contact us | Open CASCADE Technology or Technology Support - Open Cascade).

Best regards, Dmitrii.