Class TaubinSmoothing

    • Constructor Detail

      • TaubinSmoothing

        public TaubinSmoothing()
    • Method Detail

      • smooth

        public static final BufferMesh smooth​(Mesh mesh)
        Smooth the specified mesh using the Taubin smoothing algorithm, with default parameters.
        Parameters:
        mesh - the mesh to smooth.
        Returns:
        a new smoothed mesh.
      • smooth

        public static final BufferMesh smooth​(Mesh mesh,
                                              int iters,
                                              double passBand)
        Smooth the specified mesh using the Taubin smoothing algorithm, using cotangent weights.
        Parameters:
        mesh - the mesh to smooth.
        iters - the number of iterations to apply. Typical values: 10.
        passBand - the spatial frequency to use for smoothing. For instance 0.1.
        Returns:
        a new smoothed mesh.
      • smooth

        public static final BufferMesh smooth​(Mesh mesh,
                                              int iters,
                                              double lambda,
                                              double mu,
                                              TaubinSmoothing.TaubinWeightType weightType)
        Smooth the specified mesh using the Taubin smoothing algorithm.
        Parameters:
        mesh - the mesh to smooth.
        iters - the number of iterations to apply. Typical values: 10.
        lambda - the value of the lambda step in Taubin smoothing. Positive, typical values are around 0.5;
        mu - the value of the mu step in Taubin smoothing. Negative, typical values are around -0.5.
        weightType - the type of weights to use when summing contribution from neighbor edges.
        Returns:
        a new smoothed mesh.