OCC.Poly module

class OCC.Poly.Handle_Poly_HArray1OfTriangle(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Poly.Handle_Poly_Polygon2D(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Poly.Handle_Poly_Polygon3D(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Poly.Handle_Poly_PolygonOnTriangulation(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Poly.Handle_Poly_Triangulation(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Poly.Poly_Array1OfTriangle(*args)

Bases: object

Assign()
Parameters:Other (Poly_Array1OfTriangle &) –
Return type:Poly_Array1OfTriangle
ChangeValue()
Parameters:Index (Standard_Integer) –
Return type:Poly_Triangle
Destroy()
Return type:None
Init()
Parameters:V (Poly_Triangle &) –
Return type:None
IsAllocated()
Return type:bool
Length()
Return type:int
Lower()
Return type:int
Set()
Parameters:Other (Poly_Array1OfTriangle &) –
Return type:Poly_Array1OfTriangle
SetValue()
Parameters:
  • Index (Standard_Integer) –
  • Value (Poly_Triangle &) –
Return type:

None

Upper()
Return type:int
Value()
Parameters:Index (Standard_Integer) –
Return type:Poly_Triangle
thisown

The membership flag

Bases: object

GetAttribute()
  • /** * Query the attribute of the Link. */
Return type:inline Standard_Address
IsEmpty()
  • /** * Query the status of the link - if it is an invalid one. * An invalid link has Node members equal to -1. */
Return type:inline bool
Node()
  • /** * Return the node index in the current triangulation. * @param ind * 0 or 1 making distinction of the two nodes that constitute the Link. * Node(0) always returns a smaller number than Node(1). */
Parameters:ind (Standard_Integer) –
Return type:inline int
Nullify()
  • /** * Invalidate this Link. */
Return type:inline void
OppositeNode()
  • /** * Return the opposite node (belonging to the left or right incident triangle) * index in the current triangulation. * @param ind * 0 or 1 making distinction of the two involved triangles: 0 on the left, * 1 on the right side of the Link. */
Parameters:ind (Standard_Integer) –
Return type:inline int
SetAttribute()
  • /** * Set the attribute of the Link. */
Parameters:theAtt (Standard_Address) –
Return type:inline void
thisown

The membership flag

class OCC.Poly.Poly_CoherentNode(*args)

Bases: OCC.gp.gp_XYZ

AddTriangle()
  • /** * Connect a triangle to this Node. */
Parameters:
  • theTri (Poly_CoherentTriangle &) –
  • theA (Handle_NCollection_BaseAllocator &) –
Return type:

None

Clear()
  • /** * Reset the Node to void. */
Parameters:& (Handle_NCollection_BaseAllocator) –
Return type:None
DumpToString()

Poly_CoherentNode_DumpToString(Poly_CoherentNode self) -> std::string

GetIndex()
  • /** * Get the value of node Index. */
Return type:inline int
GetNormal()
  • /** * Get the stored normal in the node. */
Return type:inline gp_XYZ
GetU()
  • /** * Get U coordinate of the Node. */
Return type:inline float
GetV()
  • /** * Get V coordinate of the Node. */
Return type:inline float
HasNormal()
  • /** * Query if the Node contains a normal vector. */
Return type:inline bool
IsFreeNode()
  • /** * Check if this is a free node, i.e., a node without a single * incident triangle. */
Return type:inline bool
RemoveTriangle()
  • /** * Disconnect a triangle from this Node. */
Parameters:
  • theTri (Poly_CoherentTriangle &) –
  • theA (Handle_NCollection_BaseAllocator &) –
Return type:

bool

SetIndex()
  • /** * Set the value of node Index. */
Parameters:theIndex (Standard_Integer) –
Return type:inline void
SetNormal()
  • /** * Define the normal vector in the Node. */
Parameters:theVector (gp_XYZ) –
Return type:None
SetUV()
  • /** * Set the UV coordinates of the Node. */
Parameters:
  • theU (float) –
  • theV (float) –
Return type:

inline void

TriangleIterator()
  • /** * Create an iterator of incident triangles. */
Return type:inline Poly_CoherentTriPtr::Iterator
thisown

The membership flag

class OCC.Poly.Poly_CoherentTriangle(*args)

Bases: object

FindConnection()
  • /** * Retuns the index of the connection with the given triangle, or -1 if not * found. */
Parameters:& (Poly_CoherentTriangle) –
Return type:int
GetConnectedNode()
  • /** * Query the connected node on the given side. * Returns -1 if there is no connection on the specified side. */
Parameters:iConn (Standard_Integer) –
Return type:inline int
GetConnectedTri()
  • /** * Query the connected triangle on the given side. * Returns NULL if there is no connection on the specified side. */
Parameters:iConn (Standard_Integer) –
Return type:inline Poly_CoherentTriangle *
  • /** * Query the Link associate with the given side of the Triangle. * May return NULL if there are no links in the triangulation. */
Parameters:iLink (Standard_Integer) –
Return type:inline Poly_CoherentLink *
IsEmpty()
  • /** * Query if this is a valid triangle. */
Return type:inline bool
NConnections()
  • /** * Query the number of connected triangles. */
Return type:inline int
Node()
  • /** * Query the node index in the position given by the parameter ‘ind’ */
Parameters:ind (Standard_Integer) –
Return type:inline int
RemoveConnection()
  • /** * Remove the connection with the given index. * @param iConn * Can be 0, 1 or 2 - index of the node that is opposite to the connection * (shared link). */
Parameters:iConn (Standard_Integer) –
Return type:None
  • /** * Remove the connection with the given Triangle. * returns * True if successfuol or False if the connection has not been found. */
Parameters:theTri (Poly_CoherentTriangle &) –
Return type:bool
SetConnection()
  • /** * Create connection with another triangle theTri. * This method creates both connections: in this triangle and in theTri. You * do not need to call the same method on triangle theTr. * @param iConn * Can be 0, 1 or 2 - index of the node that is opposite to the connection * (shared link). * @param theTr * Triangle that is connected on the given link. * returns * True if successful, False if the connection is rejected * due to improper topology. */
Parameters:
  • iConn (Standard_Integer) –
  • theTr (Poly_CoherentTriangle &) –
Return type:

bool

  • /** * Create connection with another triangle theTri. * This method creates both connections: in this triangle and in theTri. * This method is slower than the previous one, because it makes analysis * what sides of both triangles are connected. * @param theTri * Triangle that is connected. * returns * True if successful, False if the connection is rejected * due to improper topology. */
Parameters:theTri (Poly_CoherentTriangle &) –
Return type:bool
thisown

The membership flag

class OCC.Poly.Poly_Connect(*args)

Bases: object

Initialize()
  • Initializes an iterator to search for all the triangles containing the node referenced at index N in the nodes table, for the triangulation analyzed by this tool. The iterator is managed by the following functions: - More, which checks if there are still elements in the iterator - Next, which positions the iterator on the next element - Value, which returns the current element. The use of such an iterator provides direct access to the triangles around a particular node, i.e. it avoids iterating on all the component triangles of a triangulation. Example Poly_Connect C(Tr); for (C.Initialize(n1);C.More();C.Next()) { t = C.Value(); }
Parameters:N (Standard_Integer) –
Return type:None
More()
  • Returns true if there is another element in the iterator defined with the function Initialize (i.e. if there is another triangle containing the given node).
Return type:bool
Next()
  • Advances the iterator defined with the function Initialize to access the next triangle. Note: There is no action if the iterator is empty (i.e. if the function More returns false).-
Return type:None
Nodes()
  • Returns, in n1, n2 and n3, the indices of the 3 nodes adjacent to the triangle referenced at index T in the triangles table specific to the triangulation analyzed by this tool. Warning Null indices are returned when there are fewer than 3 adjacent nodes.
Parameters:
  • T (Standard_Integer) –
  • n1 (Standard_Integer &) –
  • n2 (Standard_Integer &) –
  • n3 (Standard_Integer &) –
Return type:

None

Triangle()
  • Returns the index of a triangle containing the node at index N in the nodes table specific to the triangulation analyzed by this tool
Parameters:N (Standard_Integer) –
Return type:int
Triangles()
  • Returns in t1, t2 and t3, the indices of the 3 triangles adjacent to the triangle at index T in the triangles table specific to the triangulation analyzed by this tool. Warning Null indices are returned when there are fewer than 3 adjacent triangles.
Parameters:
  • T (Standard_Integer) –
  • t1 (Standard_Integer &) –
  • t2 (Standard_Integer &) –
  • t3 (Standard_Integer &) –
Return type:

None

Triangulation()
  • Returns the triangulation analyzed by this tool.
Return type:Handle_Poly_Triangulation
Value()
  • Returns the index of the current triangle to which the iterator, defined with the function Initialize, points. This is an index in the triangles table specific to the triangulation analyzed by this tool
Return type:int
thisown

The membership flag

class OCC.Poly.Poly_HArray1OfTriangle(*args)

Bases: OCC.MMgt.MMgt_TShared

Array1()
Return type:Poly_Array1OfTriangle
ChangeArray1()
Return type:Poly_Array1OfTriangle
ChangeValue()
Parameters:Index (Standard_Integer) –
Return type:Poly_Triangle
GetHandle()

Poly_HArray1OfTriangle_GetHandle(Poly_HArray1OfTriangle self) -> Handle_Poly_HArray1OfTriangle

Init()
Parameters:V (Poly_Triangle &) –
Return type:None
Length()
Return type:int
Lower()
Return type:int
SetValue()
Parameters:
  • Index (Standard_Integer) –
  • Value (Poly_Triangle &) –
Return type:

None

Upper()
Return type:int
Value()
Parameters:Index (Standard_Integer) –
Return type:Poly_Triangle
thisown

The membership flag

class OCC.Poly.Poly_Polygon2D(*args)

Bases: OCC.MMgt.MMgt_TShared

Deflection()
  • Returns the deflection of this polygon. Deflection is used in cases where the polygon is an approximate representation of a curve. Deflection represents the maximum distance permitted between any point on the curve and the corresponding point on the polygon. By default the deflection value is equal to 0. An algorithm using this 2D polygon with a deflection value equal to 0 considers that it is working with a true polygon and not with an approximate representation of a curve. The Deflection function is used to modify the deflection value of this polygon. The deflection value can be used by any algorithm working with 2D polygons. For example: - An algorithm may use a unique deflection value for all its polygons. In this case it is not necessary to use the Deflection function. - Or an algorithm may want to attach a different deflection to each polygon. In this case, the Deflection function is used to set a value on each polygon, and later to fetch the value.
Return type:float
  • Sets the deflection of this polygon to D
Parameters:D (float) –
Return type:None
GetHandle()

Poly_Polygon2D_GetHandle(Poly_Polygon2D self) -> Handle_Poly_Polygon2D

NbNodes()
  • Returns the number of nodes in this polygon. Note: If the polygon is closed, the point of closure is repeated at the end of its table of nodes. Thus, on a closed triangle, the function NbNodes returns 4.
Return type:int
Nodes()
  • Returns the table of nodes for this polygon.
Return type:TColgp_Array1OfPnt2d
thisown

The membership flag

class OCC.Poly.Poly_Polygon3D(*args)

Bases: OCC.MMgt.MMgt_TShared

ChangeParameters()
  • Returns the table of the parameters associated with each node in this polygon. ChangeParameters function returnes the array as shared. Therefore if the table is selected by reference you can, by simply modifying it, directly modify the data structure of this polygon.
Return type:TColStd_Array1OfReal
Deflection()
  • Returns the deflection of this polygon
Return type:float
  • Sets the deflection of this polygon to D. See more on deflection in Poly_Polygon2D
Parameters:D (float) –
Return type:None
GetHandle()

Poly_Polygon3D_GetHandle(Poly_Polygon3D self) -> Handle_Poly_Polygon3D

HasParameters()
  • Returns the table of the parameters associated with each node in this polygon. HasParameters function checks if parameters are associated with the nodes of this polygon.
Return type:bool
NbNodes()
  • Returns the number of nodes in this polygon. Note: If the polygon is closed, the point of closure is repeated at the end of its table of nodes. Thus, on a closed triangle the function NbNodes returns 4.
Return type:int
Nodes()
  • Returns the table of nodes for this polygon.
Return type:TColgp_Array1OfPnt
Parameters()
  • Returns true if parameters are associated with the nodes in this polygon.
Return type:TColStd_Array1OfReal
thisown

The membership flag

class OCC.Poly.Poly_PolygonOnTriangulation(*args)

Bases: OCC.MMgt.MMgt_TShared

Deflection()
  • Returns the deflection of this polygon
Return type:float
  • Sets the deflection of this polygon to D. See more on deflection in Poly_Polygones2D.
Parameters:D (float) –
Return type:None
GetHandle()

Poly_PolygonOnTriangulation_GetHandle(Poly_PolygonOnTriangulation self) -> Handle_Poly_PolygonOnTriangulation

HasParameters()
  • Returns true if parameters are associated with the nodes in this polygon.
Return type:bool
NbNodes()
  • Returns the number of nodes for this polygon. Note: If the polygon is closed, the point of closure is repeated at the end of its table of nodes. Thus, on a closed triangle, the function NbNodes returns 4.
Return type:int
Nodes()
  • Returns the table of nodes for this polygon. A node value is an index in the table of nodes specific to an existing triangulation of a shape.
Return type:TColStd_Array1OfInteger
Parameters()
  • Returns the table of the parameters associated with each node in this polygon. Warning Use the function HasParameters to check if parameters are associated with the nodes in this polygon.
Return type:Handle_TColStd_HArray1OfReal
thisown

The membership flag

class OCC.Poly.Poly_Triangle(*args)

Bases: object

ChangeValue()
  • Get the node of given Index. Raises OutOfRange if Index is not in 1,2,3
Parameters:Index (Standard_Integer) –
Return type:int
Get()
  • Returns the node indices of this triangle in N1, N2 and N3.
Parameters:
  • N1 (Standard_Integer &) –
  • N2 (Standard_Integer &) –
  • N3 (Standard_Integer &) –
Return type:

None

Set()
  • Sets the value of the three nodes of this triangle to N1, N2 and N3 respectively.
Parameters:
  • N1 (Standard_Integer) –
  • N2 (Standard_Integer) –
  • N3 (Standard_Integer) –
Return type:

None

  • Sets the value of the Indexth node of this triangle to Node. Raises OutOfRange if Index is not in 1,2,3
Parameters:
  • Index (Standard_Integer) –
  • Node (Standard_Integer) –
Return type:

None

Value()
  • Get the node of given Index. Raises OutOfRange from Standard if Index is not in 1,2,3
Parameters:Index (Standard_Integer) –
Return type:int
thisown

The membership flag

class OCC.Poly.Poly_Triangulation(*args)

Bases: OCC.MMgt.MMgt_TShared

ChangeNodes()
  • Returns the table of 3D nodes (3D points) for this triangulation. The returned array is shared. Therefore if the table is selected by reference, you can, by simply modifying it, directly modify the data structure of this triangulation.
Return type:TColgp_Array1OfPnt
ChangeNormals()
Return type:TShort_Array1OfShortReal
ChangeTriangles()
  • Returns the table of triangles for this triangulation. Function ChangeUVNodes shares the returned array. Therefore if the table is selected by reference, you can, by simply modifying it, directly modify the data structure of this triangulation.
Return type:Poly_Array1OfTriangle
ChangeUVNodes()
  • Returns the table of 2D nodes (2D points) associated with each 3D node of this triangulation. Function ChangeUVNodes shares the returned array. Therefore if the table is selected by reference, you can, by simply modifying it, directly modify the data structure of this triangulation.
Return type:TColgp_Array1OfPnt2d
Deflection()
  • Returns the deflection of this triangulation.
Return type:float
  • Sets the deflection of this triangulation to D. See more on deflection in Polygon2D
Parameters:D (float) –
Return type:None
GetHandle()

Poly_Triangulation_GetHandle(Poly_Triangulation self) -> Handle_Poly_Triangulation

HasNormals()
Return type:bool
HasUVNodes()
  • Returns true if 2D nodes are associated with 3D nodes for this triangulation.
Return type:bool
NbNodes()
  • Returns the number of nodes for this triangulation. Null if the nodes are not yet defined.
Return type:int
NbTriangles()
  • Returns the number of triangles for this triangulation. Null if the Triangles are not yet defined.
Return type:int
Nodes()
  • Returns the table of 3D nodes (3D points) for this triangulation.
Return type:TColgp_Array1OfPnt
Normals()
Return type:TShort_Array1OfShortReal
RemoveUVNodes()
  • Deallocates the UV nodes.
Return type:None
SetNormals()
  • Sets the table of node normals. raises exception if length of theNormals != 3*NbNodes
Parameters:theNormals (Handle_TShort_HArray1OfShortReal &) –
Return type:None
Triangles()
  • Returns the table of triangles for this triangulation.
Return type:Poly_Array1OfTriangle
UVNodes()
  • Returns the table of 2D nodes (2D points) associated with each 3D node of this triangulation. The function HasUVNodes checks if 2D nodes are associated with the 3D nodes of this triangulation. Const reference on the 2d nodes values.
Return type:TColgp_Array1OfPnt2d
thisown

The membership flag

class OCC.Poly.SwigPyIterator(*args, **kwargs)

Bases: object

advance()
copy()
decr()
distance()
equal()
incr()
next()
previous()
thisown

The membership flag

value()
class OCC.Poly.poly(*args, **kwargs)

Bases: object

static Catenate(*args)
  • Computes and stores the link from nodes to triangles and from triangles to neighbouring triangles. This tool is obsolete, replaced by Poly_CoherentTriangulation Algorithm to make minimal loops in a graph Join several triangulations to one new triangulation object. The new triangulation is just a mechanical sum of input triangulations, without node sharing. UV coordinates are dropped in the result.
Parameters:lstTri (Poly_ListOfTriangulation &) –
Return type:Handle_Poly_Triangulation
static ComputeNormals(*args)
  • Compute node normals for face triangulation as mean normal of surrounding triangles
Parameters:Tri (Handle_Poly_Triangulation &) –
Return type:void
static Dump(*args)
  • Dumps the triangulation. This is a call to the previous method with Comapct set to False.
Parameters:
  • T (Handle_Poly_Triangulation &) –
  • OS (Standard_OStream &) –
Return type:

void

  • Dumps the 3D polygon. This is a call to the previous method with Comapct set to False.
Parameters:
  • P (Handle_Poly_Polygon3D &) –
  • OS (Standard_OStream &) –
Return type:

void

  • Dumps the 2D polygon. This is a call to the previous method with Comapct set to False.
Parameters:
  • P (Handle_Poly_Polygon2D &) –
  • OS (Standard_OStream &) –
Return type:

void

static PointOnTriangle(*args)
  • Computes parameters of the point P on triangle defined by points P1, P2, and P3, in 2d. The parameters U and V are defined so that P = P1 + U * (P2 - P1) + V * (P3 - P1), with U >= 0, V >= 0, U + V <= 1. If P is located outside of triangle, or triangle is degenerated, the returned parameters correspond to closest point, and returned value is square of the distance from original point to triangle (0 if point is inside).
Parameters:
  • P1 (gp_XY) –
  • P2 (gp_XY) –
  • P3 (gp_XY) –
  • P (gp_XY) –
  • UV (gp_XY) –
Return type:

float

ReadPolygon2DFromString()

poly_ReadPolygon2DFromString(poly self, std::string src)

ReadPolygon3DFromString()

poly_ReadPolygon3DFromString(poly self, std::string src)

ReadTriangulationFromString()

poly_ReadTriangulationFromString(poly self, std::string src)

static Write(*args)
  • Writes the content of the triangulation <T> on the stream <OS>. If <Compact> is true this is a ‘save’ format intended to be read back with the Read method. If compact is False it is a ‘Dump’ format intended to be informative.
Parameters:
  • T (Handle_Poly_Triangulation &) –
  • OS (Standard_OStream &) –
  • Compact (bool) – default value is Standard_True
Return type:

void

  • Writes the content of the triangulation <T> on the stream <OS>. If <Compact> is true this is a ‘save’ format intended to be read back with the Read method. If compact is False it is a ‘Dump’ format intended to be informative.
Parameters:
  • T (Handle_Poly_Triangulation &) –
  • OS (Standard_OStream &) –
  • Compact (bool) – default value is Standard_True
Return type:

void

  • Writes the content of the 3D polygon <P> on the stream <OS>. If <Compact> is true this is a ‘save’ format intended to be read back with the Read method. If compact is False it is a ‘Dump’ format intended to be informative.
Parameters:
  • P (Handle_Poly_Polygon3D &) –
  • OS (Standard_OStream &) –
  • Compact (bool) – default value is Standard_True
Return type:

void

  • Writes the content of the 3D polygon <P> on the stream <OS>. If <Compact> is true this is a ‘save’ format intended to be read back with the Read method. If compact is False it is a ‘Dump’ format intended to be informative.
Parameters:
  • P (Handle_Poly_Polygon3D &) –
  • OS (Standard_OStream &) –
  • Compact (bool) – default value is Standard_True
Return type:

void

  • Writes the content of the 2D polygon <P> on the stream <OS>. If <Compact> is true this is a ‘save’ format intended to be read back with the Read method. If compact is False it is a ‘Dump’ format intended to be informative.
Parameters:
  • P (Handle_Poly_Polygon2D &) –
  • OS (Standard_OStream &) –
  • Compact (bool) – default value is Standard_True
Return type:

void

  • Writes the content of the 2D polygon <P> on the stream <OS>. If <Compact> is true this is a ‘save’ format intended to be read back with the Read method. If compact is False it is a ‘Dump’ format intended to be informative.
Parameters:
  • P (Handle_Poly_Polygon2D &) –
  • OS (Standard_OStream &) –
  • Compact (bool) – default value is Standard_True
Return type:

void

thisown

The membership flag

OCC.Poly.poly_Catenate(*args)
  • Computes and stores the link from nodes to triangles and from triangles to neighbouring triangles. This tool is obsolete, replaced by Poly_CoherentTriangulation Algorithm to make minimal loops in a graph Join several triangulations to one new triangulation object. The new triangulation is just a mechanical sum of input triangulations, without node sharing. UV coordinates are dropped in the result.
Parameters:lstTri (Poly_ListOfTriangulation &) –
Return type:Handle_Poly_Triangulation
OCC.Poly.poly_ComputeNormals(*args)
  • Compute node normals for face triangulation as mean normal of surrounding triangles
Parameters:Tri (Handle_Poly_Triangulation &) –
Return type:void
OCC.Poly.poly_Dump(*args)
  • Dumps the triangulation. This is a call to the previous method with Comapct set to False.
Parameters:
  • T (Handle_Poly_Triangulation &) –
  • OS (Standard_OStream &) –
Return type:

void

  • Dumps the 3D polygon. This is a call to the previous method with Comapct set to False.
Parameters:
  • P (Handle_Poly_Polygon3D &) –
  • OS (Standard_OStream &) –
Return type:

void

  • Dumps the 2D polygon. This is a call to the previous method with Comapct set to False.
Parameters:
  • P (Handle_Poly_Polygon2D &) –
  • OS (Standard_OStream &) –
Return type:

void

OCC.Poly.poly_PointOnTriangle(*args)
  • Computes parameters of the point P on triangle defined by points P1, P2, and P3, in 2d. The parameters U and V are defined so that P = P1 + U * (P2 - P1) + V * (P3 - P1), with U >= 0, V >= 0, U + V <= 1. If P is located outside of triangle, or triangle is degenerated, the returned parameters correspond to closest point, and returned value is square of the distance from original point to triangle (0 if point is inside).
Parameters:
  • P1 (gp_XY) –
  • P2 (gp_XY) –
  • P3 (gp_XY) –
  • P (gp_XY) –
  • UV (gp_XY) –
Return type:

float

OCC.Poly.poly_Write(*args)
  • Writes the content of the triangulation <T> on the stream <OS>. If <Compact> is true this is a ‘save’ format intended to be read back with the Read method. If compact is False it is a ‘Dump’ format intended to be informative.
Parameters:
  • T (Handle_Poly_Triangulation &) –
  • OS (Standard_OStream &) –
  • Compact (bool) – default value is Standard_True
Return type:

void

  • Writes the content of the triangulation <T> on the stream <OS>. If <Compact> is true this is a ‘save’ format intended to be read back with the Read method. If compact is False it is a ‘Dump’ format intended to be informative.
Parameters:
  • T (Handle_Poly_Triangulation &) –
  • OS (Standard_OStream &) –
  • Compact (bool) – default value is Standard_True
Return type:

void

  • Writes the content of the 3D polygon <P> on the stream <OS>. If <Compact> is true this is a ‘save’ format intended to be read back with the Read method. If compact is False it is a ‘Dump’ format intended to be informative.
Parameters:
  • P (Handle_Poly_Polygon3D &) –
  • OS (Standard_OStream &) –
  • Compact (bool) – default value is Standard_True
Return type:

void

  • Writes the content of the 3D polygon <P> on the stream <OS>. If <Compact> is true this is a ‘save’ format intended to be read back with the Read method. If compact is False it is a ‘Dump’ format intended to be informative.
Parameters:
  • P (Handle_Poly_Polygon3D &) –
  • OS (Standard_OStream &) –
  • Compact (bool) – default value is Standard_True
Return type:

void

  • Writes the content of the 2D polygon <P> on the stream <OS>. If <Compact> is true this is a ‘save’ format intended to be read back with the Read method. If compact is False it is a ‘Dump’ format intended to be informative.
Parameters:
  • P (Handle_Poly_Polygon2D &) –
  • OS (Standard_OStream &) –
  • Compact (bool) – default value is Standard_True
Return type:

void

  • Writes the content of the 2D polygon <P> on the stream <OS>. If <Compact> is true this is a ‘save’ format intended to be read back with the Read method. If compact is False it is a ‘Dump’ format intended to be informative.
Parameters:
  • P (Handle_Poly_Polygon2D &) –
  • OS (Standard_OStream &) –
  • Compact (bool) – default value is Standard_True
Return type:

void