How does Open CASCADE handle Co-ordinate systems?

Hi, I'm currently developing a software using Open CASCADE. the softwae generates points radomaly using a radom generater in VC++, these points are handled by Open CASCADE using the transformation function to display a vertx relative to a defaul co-ordinates. the only thing I need to understand is gp_dir(?,?,?) exp. what is gp_dir(0,0,1), or can someone provide me with a list of each possiblity?

Can anyone help me with this please?

P Dolbey's picture

Fiona

A gp_Dir is a normalised (i.e. unit) vector that describes a direction. So the instance gp_Dir (0., 0., 1.) represents a unit vector effectively pointing upwards (positive Z) from the XY plane. Find the gp_Dir.cdl (or the doxygen help) for a full description of the class.

Pete

P Dolbey's picture

Fiona

A gp_Dir is a normalised (i.e. unit) vector that describes a direction. So the instance gp_Dir (0., 0., 1.) represents a unit vector effectively pointing upwards (positive Z) from the XY plane. Find the gp_Dir.cdl (or the doxygen help) for a full description of the class.

Pete

P Dolbey's picture

Fiona

A gp_Dir is a normalised (i.e. unit) vector that describes a direction. So the instance gp_Dir (0., 0., 1.) represents a unit vector effectively pointing upwards (positive Z) from the XY plane. Find the gp_Dir.cdl (or the doxygen help) for a full description of the class.

Pete

fiona.z's picture

Hi Pete

Thank you very much.I will check the gp_Dir.cdl file.

Fiona

P Dolbey's picture

Sorry about the triple post, but this was due to browser exception (I'm well aware of how long it takes to post normally ,grin>)

Pete

P Dolbey's picture

Sorry about the triple post, but this was due to browser exception (I'm well aware of how long it takes to post normally ,grin>)

Pete

fiona.z's picture

Yea I know. I was about to send the reply again if I didn't see your reply just now :-)

Fiona