JSCAD User Group

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. sopatt
    3. Posts
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by sopatt

    • applyTransforms

      Hello,

      In the documentation here, it says:

      (static) transform(matrix, geometry) → {geom3}
      Source:
      modeling/src/geometries/geom3/transform.js, line 15
      Transform the given geometry using the given matrix. This is a lazy transform of the polygons, as this function only adjusts the transforms. See applyTransforms() for the actual application of the transforms to the polygons.

      I can't find any other reference to applyTransforms. When I add objects to a union, it doesn't seem to apply the transforms. If I return an array of objects from my main function, it transforms them before rendering. That's fine I guess, but shouldn't union() work? And is there an applyTransforms() somewhere?

      posted in Design Discussions
      sopatt
      sopatt
    • vec3.angle(a,b)

      Hello,

      I am new to jscad. I was using OpenSCAD and didn't know about jscad until recently but I'm loving it.

      On to my comment:

      vec3.angle(a, b) returns the angle using acos. Because acos(-x) = acos(x) it returns the absolute value of the angle, i.e. it leaves out the direction. Maybe the absolute angle is useful but my use case is to roll geometry from a to b, so I want not only the magnitude but the direction. I can still get it another way.

      But thank you for all the hard work.

      posted in Development Discussions
      sopatt
      sopatt