Version: 9.15.0
Home
GEOM_ICanonicalRecognition Interface Reference

Interface for canonical recognition operations. More...

import"GEOM_Gen.idl";

Public Member Functions

boolean isPlane (in GEOM_Object shape, in double tolerance, inout ListOfDouble normal, inout ListOfDouble origin)
 
boolean isSphere (in GEOM_Object shape, in double tolerance, inout ListOfDouble origin, inout double radius)
 
boolean isCone (in GEOM_Object shape, in double tolerance, inout ListOfDouble axis, inout ListOfDouble apex, inout double halfAngle)
 
boolean isCylinder (in GEOM_Object shape, in double tolerance, inout ListOfDouble axis, inout ListOfDouble origin, inout double radius)
 
boolean isLine (in GEOM_Object edge, in double tolerance, inout ListOfDouble direction, inout ListOfDouble origin)
 
boolean isCircle (in GEOM_Object edge, in double tolerance, inout ListOfDouble normal, inout ListOfDouble origin, inout double radius)
 
boolean isEllipse (in GEOM_Object edge, in double tolerance, inout ListOfDouble normal, inout ListOfDouble dirX, inout ListOfDouble origin, inout double majorRadius, inout double minorRadius)
 
boolean IsDone ()
 To know, if the operation was successfully performed. More...
 
void SetErrorCode (in string theErrorID)
 Set the operation error code. More...
 
string GetErrorCode ()
 Get the operation error code. More...
 
void StartOperation ()
 Opens a new transaction. More...
 
void FinishOperation ()
 Closes the previously opened transaction. More...
 
void AbortOperation ()
 Aborts the previously opened transaction. More...
 

Detailed Description

Interface for canonical recognition operations.

Member Function Documentation

◆ isPlane()

boolean isPlane ( in GEOM_Object  shape,
in double  tolerance,
inout ListOfDouble  normal,
inout ListOfDouble  origin 
)

check if the shape is planar

◆ isSphere()

boolean isSphere ( in GEOM_Object  shape,
in double  tolerance,
inout ListOfDouble  origin,
inout double  radius 
)

check if shape is spherical

◆ isCone()

boolean isCone ( in GEOM_Object  shape,
in double  tolerance,
inout ListOfDouble  axis,
inout ListOfDouble  apex,
inout double  halfAngle 
)

check if shape is conical

◆ isCylinder()

boolean isCylinder ( in GEOM_Object  shape,
in double  tolerance,
inout ListOfDouble  axis,
inout ListOfDouble  origin,
inout double  radius 
)

check if shape is cylinder

◆ isLine()

boolean isLine ( in GEOM_Object  edge,
in double  tolerance,
inout ListOfDouble  direction,
inout ListOfDouble  origin 
)

check if edge / wire is line

◆ isCircle()

boolean isCircle ( in GEOM_Object  edge,
in double  tolerance,
inout ListOfDouble  normal,
inout ListOfDouble  origin,
inout double  radius 
)

check if edge / wire is circle

◆ isEllipse()

boolean isEllipse ( in GEOM_Object  edge,
in double  tolerance,
inout ListOfDouble  normal,
inout ListOfDouble  dirX,
inout ListOfDouble  origin,
inout double  majorRadius,
inout double  minorRadius 
)

check if edge / wire is ellipse

◆ IsDone()

boolean IsDone ( )
inherited

To know, if the operation was successfully performed.

◆ SetErrorCode()

void SetErrorCode ( in string  theErrorID)
inherited

Set the operation error code.

Parameters
theErrorIDis a string describing the error occurred
Note
This method is supposed to be used only by interfaces inheriting from IOperations.

◆ GetErrorCode()

string GetErrorCode ( )
inherited

Get the operation error code.

◆ StartOperation()

void StartOperation ( )
inherited

Opens a new transaction.

◆ FinishOperation()

void FinishOperation ( )
inherited

Closes the previously opened transaction.

◆ AbortOperation()

void AbortOperation ( )
inherited

Aborts the previously opened transaction.