write_polygon_xld_dxfwrite_polygon_xld_dxfWritePolygonXldDxfWritePolygonXldDxfwrite_polygon_xld_dxf (算子)
名称
write_polygon_xld_dxfwrite_polygon_xld_dxfWritePolygonXldDxfWritePolygonXldDxfwrite_polygon_xld_dxf — 将 XLD 多边形写入 DXF 格式的文件。
签名
描述
write_polygon_xld_dxfwrite_polygon_xld_dxfWritePolygonXldDxfWritePolygonXldDxfWritePolygonXldDxfwrite_polygon_xld_dxf writes the XLD polygons
PolygonsPolygonsPolygonsPolygonspolygonspolygons to the file FileNameFileNameFileNameFileNamefileNamefile_name in DXF format.
If no absolute path is given in
FileNameFileNameFileNameFileNamefileNamefile_name the output file is created in the current
directory of the HALCON process.
write_polygon_xld_dxfwrite_polygon_xld_dxfWritePolygonXldDxfWritePolygonXldDxfWritePolygonXldDxfwrite_polygon_xld_dxf writes the file according to the
DXF version AC1009 (AutoCAD Release 12). Each polygon is stored
as a POLYLINE.
The operator read_polygon_xld_dxfread_polygon_xld_dxfReadPolygonXldDxfReadPolygonXldDxfReadPolygonXldDxfread_polygon_xld_dxf can be used to read the
XLD polygon.
注意
The XLD contours that are possibly referenced by PolygonsPolygonsPolygonsPolygonspolygonspolygons
are not stored in the DXF file. Therefore, when the polygons are
read again using read_polygon_xld_dxfread_polygon_xld_dxfReadPolygonXldDxfReadPolygonXldDxfReadPolygonXldDxfread_polygon_xld_dxf, this information
is lost, and no references to contours are generated for the
polygons. Hence, operators that access the contours associated with
a polygon, e.g., split_contours_xldsplit_contours_xldSplitContoursXldSplitContoursXldSplitContoursXldsplit_contours_xld will not work
correctly.
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
PolygonsPolygonsPolygonsPolygonspolygonspolygons (输入对象) xld_poly(-array) → objectHXLDPolyHObjectHXLDPolyHobject
XLD polygons to be written.
FileNameFileNameFileNameFileNamefileNamefile_name (输入控制) filename.write → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Name of the DXF file.
File extension:
.dxf
结果
If the parameters are correct and the file could be written the
operator write_polygon_xld_dxfwrite_polygon_xld_dxfWritePolygonXldDxfWritePolygonXldDxfWritePolygonXldDxfwrite_polygon_xld_dxf 返回值 2 ( H_MSG_TRUE )。否则,将抛出异常。
可能的前趋
gen_polygons_xldgen_polygons_xldGenPolygonsXldGenPolygonsXldGenPolygonsXldgen_polygons_xld
另见
read_polygon_xld_dxfread_polygon_xld_dxfReadPolygonXldDxfReadPolygonXldDxfReadPolygonXldDxfread_polygon_xld_dxf,
write_contour_xld_dxfwrite_contour_xld_dxfWriteContourXldDxfWriteContourXldDxfWriteContourXldDxfwrite_contour_xld_dxf
模块
基础