MPolygons
autocad_entity:autocad_mpolygon
MPolygon特征代表的AutoCAD mpolygon实体。它们由二维多段线循环定义可充满线条图案或颜色渐变区域。由于循环是被认为是区域边界封闭线,它们基本上是多边形。几何学上,mpolygons是一组一个或多个闭合边界,其可以形成多边形,甜甜圈,或几个的每一个的。
The loops of each mpolygon are closed, simple, continuous, and are not self-intersecting except at their endpoints. This is very similar to the definition of hatch entities.
The AutoCAD Reader creates features with varied geometry depending on the geometry of the loops that compose each mpolygon. Features created may be of polygon, donut or aggregate geometry, where the aggregates may contain a combination of donuts and polygons.
Note:AutoCAD的读者阅读mpolygon功能时,有以下限制:一种模式是每个舱口允许的,只有一个或两个颜色渐变的支持,未封闭的边界环闭合,和样条曲线不支持边界循环。
AutoCAD的作家有以下限制时写mpolygon特点:特点必须是封闭的,多边形,甜甜圈,或聚合几何的区域特点,根据他们是如何通过AutoCAD的读者创建。此外,它们的几何形状必须是2D或3D平面具有恒定Z,其可被存储为高程值。
Hatch patterns for mpolygons exist in external pattern files. See the的壮举ure representation information for hatch entitiesfor more information on the use of predefined and custom hatch patterns in the ACAD and REALDWG format writers.
The following attributes may be set when reading mpolygons.
Attribute Name |
内容 |
autocad_mpolygon_associative Used only for reading |
The flag indicating if the mpolygon is associative. 范围:0 for no | 1 for yes Default:0 |
autocad_mpolygon_gradient_ |
渐变填充在度mpolygon特征的角度。 范围:任何64位浮点数 Default:0 |
autocad_mpolygon_gradient_ |
The first color used to interpolate a two color gradient fill. It the single color used in a one color gradient fill. Specified as a character string of comma-separated red, green and blue values. 范围:0..255,0..255,0..255. Default:没有。 |
autocad_mpolygon_gradient_ |
第二颜色用于内插的两色渐变填充。指定用逗号分隔的红色,绿色和蓝色值的字符串。 范围:0..255,0..255,0..255 Default:没有。 |
autocad_mpolygon_gradient_ |
渐变的名称。必须为预定梯度的预定值。这是强制性的用梯度mpolygons。 范围:Curved | Cylinder| Hemispherical | Linear | Spherical | Invcurved | Invcylinder | Invhemispherical | Invspherical Default:None |
autocad_mpolygon_gradient_one_ |
该标志表示是否只用一种颜色应该在梯度计算中使用。梯度可以是两个颜色,或一种颜色与由autocad_mpolygon_shade_tint_value设置的亮度值。 范围:0 for no | 1 for yes Default:0 |
autocad_mpolygon_gradient_ |
默认和梯度的定义的转移值之间的插值。 范围:0。.1 Default:None |
autocad_mpolygon_gradient_ |
The type of the gradient. Currently this is set to 0 for predefined gradient. In the future a value of 1 may be supported for user-defined gradients. This is mandatory for mpolygons with gradients. 范围:0 for predefined | 1 for user-defined Default:None |
autocad_mpolygon_object_type |
该类型的mpolygon的。这是强制性的用渐变和比实心等图案mpolygons。 范围:0为经典mpolygon | 1颜色梯度 Default:0 |
autocad_mpolygon_origin_point_x |
The x-axis coordinate of the origin of the mpolygon in world coordinates. 范围:任何64位浮点数 Default:0 |
autocad_mpolygon_origin_point_y |
The y-axis coordinate of the origin of the mpolygon in world coordinates. 范围:任何64位浮点数 Default:0。 |
autocad_mpolygon_offset_x Used only for reading |
The offset along the x-axis coordinate of the center point of the mpolygon extents in world coordinates. 范围:任何64位浮点数 Default:0 |
autocad_mpolygon_offset_y Used only for reading |
沿y轴在世界坐标中的mpolygon盘区的中心点的坐标的偏移量。 范围:任何64位浮点数 Default:0。 |
autocad_mpolygon_pattern_ |
The angle of the pattern fill for the mpolygon feature in degrees. 范围:任何64位浮点数 Default:0 |
autocad_mpolygon_pattern_ |
The flag indicating if the mpolygon pattern is doubled by adding a second set of lines at 90 degrees to the first. This is only used for user-defined patterns. 范围:0 for no | 1 for yes Default:0 |
autocad_mpolygon_pattern_name |
The name of the pattern. May be a predefined value for predefined patterns, a predefined value for custom patterns, or any string for user-defined patterns. 范围:Pre-defined or custom pattern name | any string Default:SOLID |
autocad_mpolygon_pattern_ |
This represents the scaled size of the pattern for pre-defined and custom-defined patterns. 范围:positive floating point value > 0 Default:1 |
autocad_mpolygon_pattern_ |
This represents the space between the parallel lines of the mpolygon pattern. This is only used for user-defined patterns. 范围:positive floating point value > 0 Default:1 |
autocad_mpolygon_pattern_type |
类型的mpolygon图案。自定义的图案是创建预图案必须存在在预定义模式的位置。这是强制性的比其他固体模式mpolygons。 范围:0 for user-defined | 1 for pre-defined | 2 for custom-defined Default:1 |
autocad_mpolygon_pixel_size |
The size of pixels for intersection and ray casting when drawing the mpolygon. 范围:positive floating point value > 0 Default:1 |
autocad_mpolygon_shade_tint_ |
The luminance value of the mpolygon. If the mpolygon has a gradient and is using one color mode, this value is applied to the first color. 范围:0。0。.1.0 Default:0 |