diff --git a/DeProjMethods.md b/DeProjMethods.md index 605de943ad20def400971ad0363e431f5dc55df8..84b0a12abcce60ddf735ef0203c7ff8e02c0c5f3 100644 --- a/DeProjMethods.md +++ b/DeProjMethods.md @@ -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' )  +#### `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: + + + +Full mesh: + + + #### `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 diff --git a/static/toobjfile.png b/static/toobjfile.png new file mode 100644 index 0000000000000000000000000000000000000000..92c361e9a590d62cee3136af1ce6cdc680028ce9 Binary files /dev/null and b/static/toobjfile.png differ diff --git a/static/toobjfile_simplified.png b/static/toobjfile_simplified.png new file mode 100644 index 0000000000000000000000000000000000000000..f80a219d8c5682bc1003d0dd8f8fca418ff5e1cb Binary files /dev/null and b/static/toobjfile_simplified.png differ