API Reference > OdDb Classes > OdDbMPolygon Class
OdDbMPolygon Class
OdDbMPolygonOdDbMPolygonOdDbMPolygon
Syntax
C++
class OdDbMPolygon : public OdDbEntity;

DbMPolygon.h

This class processes one or more closed polygons as a single polygon. Corresponding C++ library: AcMPolygonObj15

TD_Db 

 

 
Name 
Description 
 
Destroys the multi polygon object. 
 
Creates a new instance of a multi polygon object with default parameters. 
 
Name 
Description 
 
Declares the loop directions. 
 
Name 
Description 
 
This is the overview for the appendLoopFromBoundary method overload. 
 
Appends a polygon loop.
 
 
Checks loops for intersection and direction. If the cycle is placed at an even level of the tree, and the direction is clockwise, it will be marked as invalid (it will not be displayed). To change direction to the right, use balanceTree. If the cycle intersects with another cycle, the cycle with a higher index will be marked as invalid (do not draw). Loops that have been marked as invalid but have the correct direction and no intersections will be marked as valid and will be drawn again.
 
 
Checks the direction of the loops and changes to the correct one. The directivity check is based on the resulting tree from getMPolygonTree. Where the depth of the tree indicates the direction of the loop (even values are counterclockwise, not even clockwise). If in MPolygon are loops that are not displayed (invalid), they will be marked again as valid (and will be drawn) if they do not intersect with others. Also check for intersections of the displayed loops(valid). Intersected loops marks as invalid, and there will be not draw.
 
 
Create loops from for empty OdDbMPolygon.  
 
Create loops from entities for empty OdDbMPolygon. Every ObjectId must be one closed loop.  
 
Recursive delete tree created by OdDbMPolygon::getMPolygonTree(OdDbMPolygonNode*&)
 
 
Reads the .dwg file data of this object.
 
 
Writes the .dwg file data of this object.
 
 
Reads the DXF data of this object.
 
 
Writes the DXF data of this object.
 
 
Returns the elevation of this entity in the OCS. 
 
Evaluates the hatch for this MPolygon entity.  
 
Returns the area of this entity.
 
 
Find within pick box the closest loop from OdDbMPolygon to input 3d point within pick box.
 
 
Gets the direction of the specified loop in the closed polygon. Returns eOk if successful, or eInvalidInput if loop index is out of range.
 
 
Returns the specified loop.
 
 
Creates a nesting tree of nodes. Where the nodes represent the nesting of the loops.
 
 
 
 
Returns a index of the parent loop, related to the specified loop.
 
 
Returns the specified pattern definition line.
 
 
Perimeter calculation by adding the length of all borders.
 
 
This is the overview for the hatch method overload. 
 
Insert a polygon loop to the specified position.
 
 
Checks if there are loops that are not drawn(invalid). Do not check loops that are draw(valid) for intersection or direction.
 
 
The function projects worldPt to the polygon plane, then if the point is on some boundary, indices of these boundaries are added to the loopsArray and the function returns, otherwise it finds innermost loop containing the point and adds its index to the loopsArray before returning.
 
 
Determines whether the specified point in WCS is on the specified loop of the polygon.
 
 
Returns the WCS normal to the plane of this entity. 
 
Returns the number of loops in the closed polygon. 
 
Returns the number of pattern definition lines. 
 
Returns the pattern angle. 
 
Returns the color information as an OdCmColor instance. 
 
Returns the pattern double flag. 
 
Returns the name of the pattern. 
 
Returns the pattern scale. 
 
Returns the pattern spacing. 
 
Returns the hatch pattern type for this MPolygon entity. 
 
Remove a polygon loop from the specified position.
 
 
Creates a geometric representation of this entity for saving proxy graphics or converting to previous formats.
 
 
Sets the elevation of this entity in the OCS.
 
 
Sets the gradient type and name.  
 
Returns the angle of the gradient.
 
 
Set the colors and interpolation values describing the gradient fill.
 
 
Controls the oneColorMode.  
 
Sets the interpolation value between the default and shifted values of the gradient's definition.
 
 
Sets the direction for the specified loop in the closed polygon. Returns eOk if successful, or eInvalidInput if loop index is out of range.
 
 
Sets the WCS normal to the plane of this entity.
 
 
Sets the pattern data.
 
 
Sets the pattern angle. 
 
Sets the color information an OdCmColor instance.
 
 
Sets the pattern double flag.
 
 
Sets the pattern scale.
 
 
Sets the pattern spacing.
 
 
Breaks the polygon into a set of polylines. 
 
Applies the default properties of the specified database to this entity.
 
 
This is subTransformBy, a member of class OdDbMPolygon. 
 
This is subWorldDraw, a member of class OdDbMPolygon. 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.