... | ... | @@ -834,11 +834,12 @@ Creates a mesh from ```shape``` using the marching cubes algorithm. Before calcu |
|
|
|
|
|
### From assets <a name="assets"></a>
|
|
|
|
|
|
``image_contouring(file,pixel_size)```
|
|
|
```image_contouring(file,pixel_size)```
|
|
|
|
|
|
Extracts contours out of an image file. Returns a table of ```IMGContour``` objects.
|
|
|
* ```file```: input image file (PNG and TGA supported)
|
|
|
* ```pixel_size```: size, in mm, of a pixel
|
|
|
|
|
|
The ```IMGContour``` object has the following members:
|
|
|
* ```outline```: The contour _(table)_
|
|
|
<table>
|
... | ... | @@ -855,6 +856,8 @@ end |
|
|
</td>
|
|
|
<td>
|
|
|
<img src="uploads/b5334a3f9d84f701e3727957ce6be7b7/Example_image_contouring" width="200">
|
|
|
<td>
|
|
|
</td>
|
|
|
<img src="uploads/82d378c0e4efb193bb5ea676e305b6b2/shapes.png" width="200">
|
|
|
</td>
|
|
|
</tr>
|
... | ... | @@ -865,6 +868,7 @@ end |
|
|
Extracts contours out of a SVG file. Returns a table of ```SVGContour``` objects.
|
|
|
* ```file```: input svg file
|
|
|
* ```dpi```: dots per inch. Use 90 for Inkscape files
|
|
|
|
|
|
The ```SVGContour``` object has the following members:
|
|
|
* ```outline```: The contour _(table)_
|
|
|
* ```fill ```: fill color for the contour _(triplet)_
|
... | ... | |