All Frameworks  Object Hierarchy  This Framework  Indexes   

Line (Object)

Represents the hybrid shape Line feature object.
Role: Declare hybrid shape Line root feature object. All interfaces for different type of Line derivates HybridShapeLine.

Use the CATIAHybridShapeFactory to create a HybridShapeLine objects.

See also:
HybridShapeFactory

Property Index

FirstUptoElem
Role: Gets the First upto element of the line.
SecondUptoElem
Role: Gets the Second upto element of the line.

Method Index

GetDirection
Role: Returns the unit-vector pointing in the direction of the line.
GetOrigin
Role: Returns the origin of the line.
PutDirection
Role: Sets the unit-vector pointing in the direction of the line.

Properties


o Property FirstUptoElem() As
Role: Gets the First upto element of the line.
Parameters:
oFirstUpto
Returns:
HRESULT S_OK if Ok E_FAIL else
o Property SecondUptoElem() As
Role: Gets the Second upto element of the line.
Parameters:
oSecondUpto
Returns:
HRESULT S_OK if Ok E_FAIL else

Methods


o Sub GetDirection( oDirection)
Role: Returns the unit-vector pointing in the direction of the line.
Parameters:
oDirection
oDirection[0]
The X Coordinate of the unit vector pointing in the direction of the line
oDirection[1]
The Y Coordinate of the unit vector pointing in the direction of the line
oDirection[2]
The Z Coordinate of the unit vector pointing in the direction of the line
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++ Implementations
See also:
HybridShapeFactory
o Sub GetOrigin( oOrigin)
Role: Returns the origin of the line.
Parameters:
oOrigin
oOrigin[0]
The X Coordinate of a point lying on the line
oOrigin[1]
The Y Coordinate of a point lying on the line
oOrigin[2]
The Z Coordinate of a point lying on the line The Origin is evaluated from the geometry of the line.
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++ Implementations
See also:
HybridShapeFactory
o Sub PutDirection( iDirection)
Role: Sets the unit-vector pointing in the direction of the line.
Parameters:
iDirection
iDirection[0]
The X Coordinate of the unit vector pointing in the direction of the line
iDirection[1]
The Y Coordinate of the unit vector pointing in the direction of the line
iDirection[2]
The Z Coordinate of the unit vector pointing in the direction of the line
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++ Implementations
See also:
HybridShapeFactory

Copyright © 2003, Dassault Systèmes. All rights reserved.