JSCAD User Group

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

    Posts made by rozek

    • RE: vectorChar vs. vectorText

      @z3dev Good morning!

      As a very first starting point I've implemented a new function "text" in package @jscad/modeling.text which directly creates Path2 arrays.

      It is currently part of my own fork of OpenJSCAD only, as I expect multiple changes before it might get accepted and become ready for an official PR. Additionally, my tests are still almost empty (as I have to learn AVA first) and only test for an execution w/o throwing any exceptions...

      Happy Easter!

      posted in General Discussions
      rozek
      rozek
    • RE: vectorChar vs. vectorText

      @z3dev well,

      suggestions would depend on whether you would accept breaking API changes or prefer keeping the API stable.

      A somewhat silly idea could be to assign the output of vectorText to its own subproperty segments (outlines.segments = outlines) : in that case, one would always have to convert outlines.segments.

      From a user's point of view, however, the main question should probably be why vectorChar and vectorText do not produce paths right away - and why there are two such methods (since vectorText looks like a superset of vectorChar).

      A possible non-breaking consequence could be: invent a new function textPaths (or similar) with a signature like vectorText which directly produces paths:

      const { textPaths } = require('@jscad/modeling').text
      const paths = textPaths('JSCAD')
      

      Such a method should be trivial to implement.

      With greetings from Germany,

      Andreas Rozek

      posted in General Discussions
      rozek
      rozek
    • vectorChar vs. vectorText

      Hello!

      First of all: thank you very much for [Open]JSCAD - it often helps me modeling technical objects which can then be sent to a 3D printer.

      A few days ago, I've started tweaking the JSCAD User Guide mainly by adding require statements to the examples found there in order to simplify coding for casual JSCAD users like me.

      During that process, I - again - stumbled across a difference between vectorChar and vectorText: while both methods are described as producing outlines which have to be converted into paths in order to be used for rendering, vectorChar "hides" its segments in a sub-property outlines.segments while vectorText directly produces segments (although the example calls them outlines as well).

      Shouldn't both methods behave similarly? Or shouldn't the examples and their descriptions clearly describe the differences between both methods?

      With greetings from Germany,

      Andreas Rozek

      posted in General Discussions
      rozek
      rozek