Skip to main content
4-Participant
September 18, 2024
Question

Start and end point of an arc in toolkit

  • September 18, 2024
  • 2 replies
  • 891 views

How can I get the start and end point (as a pfcPoint3D_ptr) using a pfcArcDescriptor_ptr object in object toolkit c++?

 

 

2 replies

Catalina
Community Moderator
September 18, 2024

Hi @SN_10773997,

 

Thank you for your question! 

 

I’d like to recommend to bring more details and context to your initial inquiry. 

It also helps to have screenshot(s) to better understand what you are trying to do in your process. 

 

Please refer to this guideline to make your questions more likely to receive a quick and useful answer. 

This will increase your chances to receive meaningful help from other Community members. 

 

Best regards,

Catalina | PTC Community Moderator
RPN
18-Opal
September 20, 2024

It seems no one is willing, so here to get a clue for Toolkit,

You may have an edge or a curve. For a curve

 

 err= ProCurveInit(model,geom_id,&p_curve_data);
 err = ProCurvedataTypeGet(p_curve_data, &c_type);
 switch(c_type)
....

 case PRO_ENT_ARC:
	err = ProArcdataGet(p_curve_data, v1, v2, p1, &st_a, &en_a, &rad);
...

/* or
dataPtr->data.p_curve_data->arc.vector1[0] and 1 and 2
dataPtr->data.p_curve_data->arc.vector2[0] and 1 and 2
dataPtr->data.p_curve_data->arc.origin[0] and 1 and 2
dataPtr->data.p_curve_data->arc.start_angle
dataPtr->data.p_curve_data->arc.end_angle;
dataPtr->data.p_curve_data->arc.radius;

*/

Check UtilIntfData.c 

For an edge it is similar ....