write
format_path_properly(folder, file_name, extension)
Makes a valid recording path.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
folder
|
Path or str
|
The folder where to record the file. Default is None. |
required |
file_name
|
Path or str
|
The name to record the file under. |
required |
extension
|
str
|
The file extension to use. Should be either |
required |
Returns:
| Type | Description |
|---|---|
Path or None
|
The proper path to use. |
Source code in src/dxtr/io/write.py
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 | |
write_ply(top_simplices, points, path, property=None)
Saves computed data structures on disk in the .ply format.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
top_simplices
|
list of list of int
|
The list of vertex indices forming the highest degree simplices. |
required |
points
|
np.ndarray of float
|
The coordinates of the vertices. |
required |
path
|
str or Path
|
The path where to save the file. |
required |
property
|
np.array of float
|
Additional property data to save. Default is None. |
None
|
Returns:
| Type | Description |
|---|---|
None
|
|
Source code in src/dxtr/io/write.py
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | |