Skip to content

Transform NurbsCurve (Rotate) #57

Open
@RafaelScharf

Description

I need to rotate Nurbs Curve, I tried using the .transform method to change rotate using matrix but to no avail.

Look at my code

    `
    let cNurbsW = new verb.geom.NurbsCurve(arrayCurvesWidth[0]);
      let tempAngle = MathUtils.degToRad(45)
      cNurbsW.transform(
          [
              [Math.cos(tempAngle), -Math.sin(tempAngle), 0, 0],
              [Math.sin(tempAngle), Math.cos(tempAngle), 0, 0],
              [0, 0, 1, 0],
              [0, 0, 0, 1]
          ]
      )
    `

How to i rotate my NubsCurve?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions