ig:gfx:model-configuration-and-parameters
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| ig:gfx:model-configuration-and-parameters [2025/10/29 13:21] – [Reqirements for paths] ig_ii | ig:gfx:model-configuration-and-parameters [2025/10/29 13:27] (current) – [Introduction Paths] ig_ii | ||
|---|---|---|---|
| Line 63: | Line 63: | ||
| ---- | ---- | ||
| - | ==== Parsing paths into custom JSON Format ==== | ||
| - | After reading the SVG path data, each path can be converted into a structured JSON format to describe its geometry programmatically. For this purpose there is parser in development or it can be done manually or just by instructing " | ||
| - | |||
| - | The JSON object includes: | ||
| - | |||
| - | * **paths**: An array of path objects. Each path object contains: | ||
| - | * **id**: A unique identifier for the path (e.g., '' | ||
| - | * **path**: An array of command segments that describe the path. | ||
| - | * **quality**: | ||
| - | It allows this specific path to be generated with a different level of detail or resolution(subdivision), | ||
| - | useful for optimizing performance or enhancing precision locally. | ||
| - | |||
| - | * '' | ||
| - | '' | ||
| - | and for `trimPath` if used, when using the **Flat Panel** model type | ||
| - | with the **SOLID 1_3** specification—particularly if the path includes | ||
| - | curved commands like '' | ||
| - | This helps prevent self-intersecting geometry when applying complex | ||
| - | or thick profiles to the overall inner panel shape. | ||
| - | |||
| - | Each segment in the '' | ||
| - | |||
| - | * **type**: The SVG path command type (e.g., '' | ||
| - | * **end**: The end point of the command, given as '' | ||
| - | * **controlPoints** (For curves only): For curves, this includes one or two control points as objects with '' | ||
| - | |||
| - | ---- | ||
| - | {{newpage}} | ||
| ==== JSON Examples for Each Path Command ==== | ==== JSON Examples for Each Path Command ==== | ||
| Line 248: | Line 220: | ||
| ---- | ---- | ||
| - | {{newpage}} | + | |
| ==== Reqirements for paths ==== | ==== Reqirements for paths ==== | ||
| An updated '' | An updated '' | ||
| + | {{ : | ||
| * The plane must be defined as a **closed 2D shape**. | * The plane must be defined as a **closed 2D shape**. | ||
| * A valid polygon is expressed as: | * A valid polygon is expressed as: | ||
ig/gfx/model-configuration-and-parameters.1761740483.txt.gz · Last modified: 2025/10/29 13:21 by ig_ii
