User Tools

Site Tools


ig:gfx:model-configuration-and-parameters

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ig:gfx:model-configuration-and-parameters [2025/10/29 13:21] – [JSON Examples for Each Path Command] ig_iiig: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 "LLM" (Large Language Model) 
- 
-The JSON object includes: 
- 
-  * **paths**: An array of path objects. Each path object contains: 
-    * **id**: A unique identifier for the path (e.g., ''board''). 
-    * **path**: An array of command segments that describe the path. 
-    * **quality**: An optional override of the global quality setting. 
-      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. 
- 
-  * ''**Important:**'' It is strongly recommended to set the 
-    ''quality'' overwrite individually for the `path` parameter, 
-    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 ''C'', ''Q'', or ''A''. 
-    This helps prevent self-intersecting geometry when applying complex 
-    or thick profiles to the overall inner panel shape. 
- 
-Each segment in the ''path'' array represents a single SVG path command and is structured as: 
- 
-  * **type**: The SVG path command type (e.g., ''M'', ''L'', ''C''), matching the SVG specification. 
-  * **end**: The end point of the command, given as ''x'' and ''y'' coordinates. 
-  * **controlPoints** (For curves only): For curves, this includes one or two control points as objects with ''x'' and ''y'' values. For non-curve commands, this is an empty array. 
- 
----- 
-{{newpage}} 
 ==== JSON Examples for Each Path Command ==== ==== JSON Examples for Each Path Command ====
  
Line 251: Line 223:
 ==== Reqirements for paths ==== ==== Reqirements for paths ====
 An updated ''board_clean_closed.svg'' file has been uploaded to the repository. This file serves as a reference and replaces the earlier ''board_clean.svg'' version, now explicitly including the ''Z'' command (close path) to ensure mathematical correctness. The following requirements apply: An updated ''board_clean_closed.svg'' file has been uploaded to the repository. This file serves as a reference and replaces the earlier ''board_clean.svg'' version, now explicitly including the ''Z'' command (close path) to ensure mathematical correctness. The following requirements apply:
 +{{ :ig:gfx:modelprocessor:valid_invalid_polygon.jpg?600 |}}
   * 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.1761740494.txt.gz · Last modified: 2025/10/29 13:21 by ig_ii