Jump to content
xiaoming

How to judge a surface is curve surface or flat surface?

Recommended Posts

Hi,

I am the rookie of the tcl.I have some basic questions.But i can not find it in api document.

Supposed i have a solid,which has many surfaces and lines.

how to judge a surface is curve surface or flat surface? 

how to judge a line is curve line or flat line?

For more,can i know the expression(formula) of surface(line)?

Thanks! 

Share this post


Link to post
Share on other sites

There is an api but i can't remember, maybe it is removed in new version

 

A workaround:

A straight line is simply tested by

proc IsStraight LineID {

    *createmark lines 1 $LineID

    catch {hm_getbestcirclecenter lines 1 1}

}

 

A surface? 

- create a few lines on it (extract parametric lines)

- check straight for those lines, if all straight => flat surf (not sure) :rolleyes:

Pandurang likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×