Commit 9c66d60b authored by Jean-Yves TINEVEZ's avatar Jean-Yves TINEVEZ
Browse files

Documentation for to_objfile().

parent 3b213459
......@@ -21,6 +21,7 @@ But the really important methods are those who create a `deproj` analysis result
* [The import.](#the-import-1)
* [to_table](#to_table)
* [to_file](#to_file)
* [to_objfile](#to_objfile)
* [figure_cell_sizes](#figure_cell_sizes)
* [figure_tissue_orientation](#figure_tissue_orientation)
* [figure_cell_elongation](#figure_cell_elongation)
......@@ -319,6 +320,22 @@ dpr.to_file( 'table.xlsx' )
![ExampleExport](static/ExampleExport.png)
#### `to_objfile`
`to_objfile( obj, file_name, simplified )`
Exports the tissue mesh to a Wavefront OBJ file (see https://en.wikipedia.org/wiki/Wavefront_.obj_file).
If `simplified` is `true`, then we only export a simplified mesh made of the junction graph. Otherwise we export one face per cell, with the vertices being the points along the cell contour.
Simplified mesh:
![ExampleExport](static/toobjfile_simplified.png)
Full mesh:
![ExampleExport](static/toobjfile.png)
#### `figure_cell_sizes`
`[ hf, ax1, ax2 ] = figure_cell_sizes( obj, scale_bar_length )`
......@@ -632,4 +649,4 @@ The first output arguments `f3d` contains the ellipse parameter in cartesian for
- The semi-minor axis of the ellipse `b`. We always have `a > b` and both values are positive.
- The angle of the semi-major axis with the X'' axis, after the composed rotation by the Euler angles.
The second argument `R` is the rotation matrix computed from the Euler angles.
The second argument `R` is the rotation matrix computed from the Euler angles.
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment