DbMPolygon.h
This class processes one or more closed polygons as a single polygon. Corresponding C++ library: AcMPolygonObj15
|
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 correct one, use balanceTree(). If a cycle intersects with another cycle, the cycle with a higher index will be marked as invalid (not drawn). 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 it 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, odd are clockwise). If in MPolygon there 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 the check is done for intersections of the displayed (valid) loops. Intersected loops are marked as invalid, and they will not be drawn. | |
|
Creates loops from vertices and bulges for empty OdDbMPolygon. | |
|
Creates loops from entities for an empty OdDbMPolygon. Every ObjectId must be one closed loop. | |
|
Recursively deletes the tree created by OdDbMPolygon::getMPolygonTree(OdDbMPolygonNode*& loopNode). | |
|
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. | |
|
Returns an array of indices of the loops that are children of the specified loop. | |
|
Finds the closest loop from the OdDbMPolygon within the pick box around the specified 3D point. | |
|
Gets the direction of the specified loop in the closed polygon. | |
|
Gets the specified loop. | |
|
Creates a nesting tree of nodes, where the nodes represent the nesting of the loops. | |
|
Returns the offset vector. | |
|
Returns the index of the parent loop, related to the specified loop. | |
|
Returns the specified pattern definition line. | |
|
Calculates the OdDbMPolygon perimeter by adding the lengths of all borders. | |
|
This is the overview for the hatch method overload. | |
|
Inserts a polygon loop to the specified position. | |
|
Checks if there are loops that are not drawn (invalid). Does not check loops that are drawn (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 the 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. | |
|
Removes a polygon loop from the specified position. | |
|
This is the overview for the replaceMPolygonLoopAt method overload. | |
|
Creates a geometric representation of the 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. | |
|
Sets the angle of the gradient. | |
|
Sets 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. | |
|
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. | |
|
Create an object by OdDbFullSubentPath to the subentity. | |
|
Transforms the polygon by a specified matrix. | |
|
Indicates whether the entity has no view-dependent graphics. |
Copyright © 2002–2021. Open Design Alliance. All rights reserved.
|