geometry_weld_meshes
Welds points of multiple input meshes up to a given distance threshold, i.e., points of similar coordinates are merged into a single representation. Returns the names of the Triangle_mesh objects created after merging based on the provided name. If only a single mesh is created then the name will match that of the name parameter provided to the command. If multiple meshes are returned their names will have an index appended to them.
References:
arguments
- "meshes" : Array
Array of Maps with the properties "mesh_name" of type String pointing to the name of the mesh and "transform" Float64<4,4> of type corresponding to the world to object space transform (obtainable from the instance). Meshes must be Triangle_mesh or Polygon_mesh objects.
- "point_representative" : String (default: "best_fit")
This option defines how representative of a cluster should be computed. If set to "centroid", all points falling into the cluster are averaged. If set to "best_fit", the welder aims at minimizing the integrated geometric error and preserving the enclosed volume.The first variant is slightly faster, but should only be used for very small tolerance values.If the tolerance is set to zero, this option will be ignored.
- "point_tolerance" : Float64 (default: 0)
Tolerance default value used for geometry welding, i.e., the maximum allowed distance of points to be merged into a single point.
- "welded_mesh_name" : String
Name of the Triangle_mesh object created by welding the input mesh. Note that multiple mesh objects may be created. If so the mesh number will be appended to the name. This command returns an array of the names of the meshes created. Do not assume that only a single mesh will be returned, even though this will be the case most of the time. You should check the return value to be sure the expected number of meshes were created.