# class Welder

Welds vertices within the geometry or scene together.

# Properties

Property Description
CompactMesh If true, the welder will call Compact on the geometry after welding.
IgnoreVertexLocks If IgnoreVertexLocks is true, then also vertices that are locked may be welded.
OnlyBetweenSceneNodes If set, only vertices that belong to different scene nodes are considered for the welding.
OnlyBorders If set, only vertices that are on the border are considered for the welding.
OnlyWithinMaterial If set, only vertices that are within the same material are welded. Vertices on material borders are locked.
OnlyWithinSceneNode If set, only vertices that are within the same scene node are welded.
ProcessSelectionSetID The ID of the selection set containing the meshes to weld If the ID is -1, all meshes are selected. If both selection set name and ID are set, the name will be used.
ProcessSelectionSetName The now of the selection set containing the meshes to weld. If the name is not found, all geometries in the scene will be processed. If both selection set name and ID are set, the name will be used.
ProgressivePasses The number of progressive passes.
Scene The scene.
UpdateExtents If true, the welder will call CalculateExtents on the geometry before welding.
WeldDist The distance below which the vertices will be welded.

# Methods

Method Description
Clear Clear all internal states of the object. This will NOT clear the parameters set in the object.
GetClass Get the name of the Welder class.
GetPercentDone Returns the current progress of the processing as a value between 0 and 100.
IsA Returns true if Welder is a or is a descendant of the class named as the type parameter.
IsNull Returns true if the Welder object is invalid.
RunProcessing Runs the processing the object is designed for.
ToJSON Get settings as JSON for debugging purposes.
WeldGeometry Welds the geometry.

# Static methods

Method Description
IsClassA Returns true if the class is a or is a descendant of the class named as the type parameter.
SafeCast SafeCast makes sure the input object is of a class that can be cast into spWelder, and if this is the case, returns the object cast into spWelder.

# Properties details

# CompactMesh

If true, the welder will call Compact on the geometry after welding.

    # IgnoreVertexLocks

    If IgnoreVertexLocks is true, then also vertices that are locked may be welded.

      # OnlyBetweenSceneNodes

      If set, only vertices that belong to different scene nodes are considered for the welding.

        # OnlyBorders

        If set, only vertices that are on the border are considered for the welding.

          # OnlyWithinMaterial

          If set, only vertices that are within the same material are welded. Vertices on material borders are locked.

            # OnlyWithinSceneNode

            If set, only vertices that are within the same scene node are welded.

              # ProcessSelectionSetID

              The ID of the selection set containing the meshes to weld If the ID is -1, all meshes are selected. If both selection set name and ID are set, the name will be used.

                # ProcessSelectionSetName

                The now of the selection set containing the meshes to weld. If the name is not found, all geometries in the scene will be processed. If both selection set name and ID are set, the name will be used.

                  # ProgressivePasses

                  The number of progressive passes.

                    # Scene

                    The scene.

                      # UpdateExtents

                      If true, the welder will call CalculateExtents on the geometry before welding.

                        # WeldDist

                        The distance below which the vertices will be welded.

                          # Methods details

                          # Clear

                          Clear all internal states of the object. This will NOT clear the parameters set in the object.

                            # GetClass

                            Get the name of the Welder class.

                              # GetPercentDone

                              Returns the current progress of the processing as a value between 0 and 100.

                                # IsA

                                Returns true if Welder is a or is a descendant of the class named as the type parameter.

                                  # IsNull

                                  Returns true if the Welder object is invalid.

                                    # RunProcessing

                                    Runs the processing the object is designed for.

                                      # ToJSON

                                      Get settings as JSON for debugging purposes.

                                        # WeldGeometry

                                        Welds the geometry.

                                          # Static methods details

                                          # IsClassA

                                          Returns true if the class is a or is a descendant of the class named as the type parameter.

                                            # SafeCast

                                            SafeCast makes sure the input object is of a class that can be cast into spWelder, and if this is the case, returns the object cast into spWelder.