Home
Reply
Regular Contributor
yadongshen
Posts: 44

How to obtain the axis of cylindrical face

Dear all,

 

how to obtain the axis of cylindrical face, since i need it to judge the dof in cylindrical face.

 

Thanks in advance

 

Mike

Regular Contributor
yadongshen
Posts: 44

Re: How to obtain the axis of cylindrical face

Dear all,

 

is there any member function under cylinderical_entity. 

thanks 

 

Mike

Regular Contributor
Vi2
Posts: 55

Re: How to obtain the axis of cylindrical face

SURFACE *FACE::geometry() const;
DECL_KERN logical is_CONE(const ENTITY* ent);

const SPAunit_vector &CONE::direction() const { return def.base.normal; }

 

 

if (is_CONE(pFace))
{
   const CONE* pCone =  (const CONE*) pFace->geometry();
   SPAunit_vector axis = pCone->direction();
}

 

 

Regular Contributor
yadongshen
Posts: 44

Re: How to obtain the axis of cylindrical face

Thank you

 

but i followed you code, it turned out the "CONE" is not defined at all. it is not defined class in acis

i looked it up online library, the "CONE" is just right there. i am confused and stuck.

 

Regular Contributor
yadongshen
Posts: 44

Re: How to obtain the axis of cylindrical face

ok, i figured out.

i forget to include the file. lol

thanks anyway

Regular Contributor
yadongshen
Posts: 44

Re: How to obtain the axis of cylindrical face

got one error: error C2039: 'geometry' : is not a member of 'ENTITY'

 

why is that. thank you