render_set_edges

Sets feature edges and silhouettes: enabled true, false or "auto" (solid mode only, the default), widthPx in [0.5, 8] (default 1.5), angleDeg, the crease angle above which an edge is drawn, in [1, 179] (default 30; changing it re-extracts every mesh), silhouettes (drawn with the edges) and outline (around selected objects). Omitted values are kept. Returns get_edges.

Command

Usage

TypeScript
surface.execute('render_set_edges', { enabled?, widthPx?, angleDeg?, silhouettes?, outline? })

Parameters

  • enabledtrue | false | "auto"

    Optional

  • widthPxnumber

    Optional

  • angleDegnumber

    Optional

  • silhouettesboolean

    Optional

  • outlineboolean

    Optional

Returns

object with enabled, widthPx, angleDeg, silhouettes, outline, in the ok: true envelope.

JSON
{
  "type": "object",
  "properties": {
    "enabled": {
      "enum": [
        true,
        false,
        "auto"
      ]
    },
    "widthPx": {
      "type": "number"
    },
    "angleDeg": {
      "type": "number"
    },
    "silhouettes": {
      "type": "boolean"
    },
    "outline": {
      "type": "boolean"
    }
  },
  "required": [
    "enabled",
    "widthPx",
    "angleDeg",
    "silhouettes",
    "outline"
  ]
}

See also