cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Start and end point of an arc in toolkit

SN_10773997
3-Newcomer

Start and end point of an arc in toolkit

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

 

 

2 REPLIES 2

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
17-Peridot
17-Peridot
(To:SN_10773997)

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 ....

Announcements


Top Tags