 SavePoints
 SavePoints
Saves named points on a triangle to a file in the TXT or JSON format.
Tip
By default SavePoints node does nothing unless you click Compute Current Frame or Compute Frame Range button.
Inputs
- Named Points on Triangle
- NamedPointsOnTriangleAn array of named points on a triangle to be saved
- Geometry
- Geometry(optional) An input geometry for using 3D-Points format. Not required if you plan to save points in a different format.
Parameters
- File Name:
- a file path to save to. Supports Path Interpretation. 
- Format:
- Named Point On Triangle
- save points in native - Named Points On Triangleformat.- Point On Triangle
- save points in - Point On Triangleformat. Names defines non-named points order. Loading them with LoadPoints will automatically generate ordered names.
- 3D-Points
- save points as 3D points without names. Names defines non-named points order. Loading them with LoadPoints will automatically generate ordered names. 
 
- Named 3D-Points
- save points as 3D points with original names. 
 
- Create Intermediate Directories:
- if set, nonexistent directories in the file path will be created. 
- Compute Current Frame:
- computes the node at the current frame and saves the result to a file. 
- Compute Frame Range:
- opens Compute Frame Range Dialog to render node graph in multiple background processes. 
File Formats
Named points can be exported in the following JSON formats:
Point On Triangle
The points are represented in the following JSON format:
[ [42, 0.3, 0.5], [1337, 0.0, 1.0] ]
This line stores two points. Each point is represented with 3 numbers:
- index of the triangle containing the point 
- the first barycentric coordinate of the point inside the triangle 
- the second barycentric coordinate of the point inside the triangle 
Tip
If a model contains polygons with more than 3 vertices Wrap implicitly stores a triangulated version of the model. Wrap uses naive fan triangulation with the fan origin at the first vertex of the polygon.
Tip
Barycentric coordinates is a way to encode point position inside a triangle with two numbers U and V. If a triangle has 3 vertices with 3D coordinates A, B and C, barycentric coordinates U and V defines a point in 3D which position is calculated like:
P = A * U + B * V + C * (1 - U - V)
Named Point On Triangle
The points are represented in the following JSON format:
{ "Point01": [42, 0.3, 0.5], "Point02": [1337, 0.0, 1.0] }
3D-Points
This JSON format stores point coordinates in 3D space.
[ { "x": 0.1, "y": 0.5, "z": 1.2 }, { "x": -4.0, "y": 1.7, "z": 0.9 } ]
This line stores two points. Each point is represented with 3 numbers:
- X coordinate of the point 
- Y coordinate of the point 
- Z coordinate of the point 
Named 3D-Points
The points are represented in the following JSON format:
{ "Point01": { "x": 0.1, "y": 0.5, "z": 1.2 }, "Point02": { "x": -4.0, "y": 1.7, "z": 0.9 } }