GEOM.GEOM_IMeasureOperations Interface Reference

import "GEOM_Gen.idl";

Inheritance diagram for GEOM.GEOM_IMeasureOperations:

Inheritance graph

Public Member Functions

void GetBasicProperties (in GEOM_Object theShape, out double theLength, out double theSurfArea, out double theVolume)
GEOM_Object GetCentreOfMass (in GEOM_Object theShape)
void GetInertia (in GEOM_Object theShape, out double I11, out double I12, out double I13, out double I21, out double I22, out double I23, out double I31, out double I32, out double I33, out double Ix, out double Iy, out double Iz)
void GetBoundingBox (in GEOM_Object theShape, out double Xmin, out double Xmax, out double Ymin, out double Ymax, out double Zmin, out double Zmax)
void GetTolerance (in GEOM_Object theShape, out double FaceMin, out double FaceMax, out double EdgeMin, out double EdgeMax, out double VertMin, out double VertMax)
boolean CheckShape (in GEOM_Object theShape, out string theDescription)
boolean CheckShapeWithGeometry (in GEOM_Object theShape, out string theDescription)
string WhatIs (in GEOM_Object theShape)
double GetMinDistance (in GEOM_Object theShape1, in GEOM_Object theShape2, out double X1, out double Y1, out double Z1, out double X2, out double Y2, out double Z2)
void PointCoordinates (in GEOM_Object theShape, out double X, out double Y, out double Z)
boolean IsDone ()
void SetErrorCode (in string theErrorID)
string GetErrorCode ()
long GetStudyID ()
void StartOperation ()
void FinishOperation ()
void AbortOperation ()

Detailed Description

GEOM_IMeasureOperations: Interface for measurement (distance, whatis) and properties calculation (like Centre of Mass, Inertia, etc.).


Member Function Documentation

void GEOM.GEOM_IMeasureOperations.GetBasicProperties in GEOM_Object  theShape,
out double  theLength,
out double  theSurfArea,
out double  theVolume
 

Get summarized length of all wires, area of surface and volume of the given shape.

Parameters:
theShape Shape to define properties of.
theLength Output. Summarized length of all wires of the given shape.
theSurfArea Output. Area of surface of the given shape.
theVolume Output. Volume of the given shape.
Returns:
Returns shape properties through the last three arguments.

GEOM_Object GEOM.GEOM_IMeasureOperations.GetCentreOfMass in GEOM_Object  theShape  ) 
 

Get a point, situated at the centre of mass of theShape.

Parameters:
theShape Shape to define centre of mass of.
Returns:
New GEOM_Object, containing the created point.

void GEOM.GEOM_IMeasureOperations.GetInertia in GEOM_Object  theShape,
out double  I11,
out double  I12,
out double  I13,
out double  I21,
out double  I22,
out double  I23,
out double  I31,
out double  I32,
out double  I33,
out double  Ix,
out double  Iy,
out double  Iz
 

Get inertia matrix and moments of inertia of theShape.

Parameters:
theShape Shape to calculate inertia of.
I(1-3)(1-3) Output. Components of the inertia matrix of the given shape.
Ix,Iy,Iz Output. Moments of inertia of the given shape.
Returns:
Returns inertia through the last twelve arguments.

void GEOM.GEOM_IMeasureOperations.GetBoundingBox in GEOM_Object  theShape,
out double  Xmin,
out double  Xmax,
out double  Ymin,
out double  Ymax,
out double  Zmin,
out double  Zmax
 

Get parameters of bounding box of the given shape

Parameters:
theShape Shape to obtain bounding box of.
Xmin,Xmax Output. Limits of shape along OX axis.
Ymin,Ymax Output. Limits of shape along OY axis.
Zmin,Zmax Output. Limits of shape along OZ axis.
Returns:
Returns parameters of bounding box through the last six arguments.

void GEOM.GEOM_IMeasureOperations.GetTolerance in GEOM_Object  theShape,
out double  FaceMin,
out double  FaceMax,
out double  EdgeMin,
out double  EdgeMax,
out double  VertMin,
out double  VertMax
 

Get min and max tolerances of sub-shapes of theShape

Parameters:
theShape Shape, to get tolerances of.
FaceMin,FaceMax Output. Min and max tolerances of the faces.
EdgeMin,EdgeMax Output. Min and max tolerances of the edges.
VertMin,VertMax Output. Min and max tolerances of the vertices.
Returns:
Returns shape tolerances through the last six arguments.

boolean GEOM.GEOM_IMeasureOperations.CheckShape in GEOM_Object  theShape,
out string  theDescription
 

Check a topology of the given shape.

Parameters:
theShape Shape to check validity of.
theDescription Output. Description of problems in the shape, if they are.
Returns:
TRUE, if the shape "seems to be valid" from the topological point of view.

boolean GEOM.GEOM_IMeasureOperations.CheckShapeWithGeometry in GEOM_Object  theShape,
out string  theDescription
 

Check a topology and a geometry of the given shape.

Parameters:
theShape Shape to check validity of.
theDescription Output. Description of problems in the shape, if they are.
Returns:
TRUE, if the shape "seems to be valid".

string GEOM.GEOM_IMeasureOperations.WhatIs in GEOM_Object  theShape  ) 
 

Obtain description of the given shape

Parameters:
theShape Shape to be described.
Returns:
Description of the given shape.

double GEOM.GEOM_IMeasureOperations.GetMinDistance in GEOM_Object  theShape1,
in GEOM_Object  theShape2,
out double  X1,
out double  Y1,
out double  Z1,
out double  X2,
out double  Y2,
out double  Z2
 

Get minimal distance between the given shapes.

Parameters:
theShape1,theShape2 Shapes to find minimal distance between.
X1,Y1,Z1 Output. Coordinates of point on theShape1, nearest to theShape2.
X2,Y2,Z2 Output. Coordinates of point on theShape2, nearest to theShape1.
Returns:
Value of the minimal distance between the given shapes.

void GEOM.GEOM_IMeasureOperations.PointCoordinates in GEOM_Object  theShape,
out double  X,
out double  Y,
out double  Z
 

Get point coordinates

boolean GEOM.GEOM_IOperations.IsDone  )  [inherited]
 

To know, if the operation was successfully performed

void GEOM.GEOM_IOperations.SetErrorCode in string  theErrorID  )  [inherited]
 

Set the operation error code

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

string GEOM.GEOM_IOperations.GetErrorCode  )  [inherited]
 

Get the operation error code

long GEOM.GEOM_IOperations.GetStudyID  )  [inherited]
 

Get ID of study, where the operation is defined

void GEOM.GEOM_IOperations.StartOperation  )  [inherited]
 

Opens a new transaction

void GEOM.GEOM_IOperations.FinishOperation  )  [inherited]
 

Closes the previously opened trasaction

void GEOM.GEOM_IOperations.AbortOperation  )  [inherited]
 

Aborts the previously opened transaction