Skip to main content
1-Visitor
November 18, 2015
Question

how can I get vertices, faces and color of the part or assembly parts

  • November 18, 2015
  • 1 reply
  • 2965 views

Hello! Could you please tell me how can I get vertices, faces and colors oof the part or assembly parts in Pro/E Wildfire 4.0 using Pro/Toolkit (c++).


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.

1 reply

1-Visitor
December 4, 2015

Hello Vladimir,

how to do it, is nothing to explain in a few words in a thread.

I can just say that it is possible by accessing the geometry data of the model and that there are some examples about how to access that.

With colors you need to be aware that there are several levels of coloring possible for each surface (part surface color, model color and color assigned in assembly), so it depends whether you want to get the color currently showing or an underlying color.

Regards,

Gunter

vvladimir1-VisitorAuthor
1-Visitor
December 7, 2015

Hello Gunter,

It is quite clear. I do not want you to repeat chapters of user manual. However, could you please give me any clue/hint where to find.

Regards,

Vladimir

1-Visitor
December 7, 2015

Hello Vladimir,

I would start with the section "Visiting Solid Geometry" under the chapter "Core: 3D Geometry".

It explains in short, how to traverse down to the geometry items for vertices and faces.

ProSolidSurfaceVisit() and/or ProSolidQuiltVisit() are probably functions you will need at the top of traversing.

To get the colors of surfaces, I would use ProSurfaceAppearancepropsGet()

There are useful links from the function descriptions to User's Guide and sample code.

Regards,

Gunter