dusunax / dicom-and-three-js-viewer

🩻 great viewer for dcm & ply file
3 stars 0 forks source link

230622 - Fixing issues: Adjust clipping plane & Adjust Converting step size #11

Closed dusunax closed 1 year ago

dusunax commented 1 year ago

230622 - Fixing issues: Adjust clipping plane & Adjust Converting step size

πŸ—‚ Works μž‘μ—…λ‚΄μš©

[three.js] Adjust clipping plane (for fix rendering distance)

[trimesh] Adjust Converting step size (for fix converted file size)


[three.js] Adjust clipping plane (for fix rendering distance) πŸ“Œ

❓ problem : clipping plane

image

❗ adjust three.js camera

[trimesh] Adjust Converting step size (for fix converted file size) πŸ“Œ

❓ problem : converted ply file is too large for push to github

Parameters

volume : (M, N, P) array Input data volume to find isosurfaces. Will internally be converted to float32 if necessary. level : float, optional Contour value to search for isosurfaces in volume. If not given or None, the average of the min and max of vol is used. spacing : length-3 tuple of floats, optional Voxel spacing in spatial dimensions corresponding to numpy array indexing dimensions (M, N, P) as in volume. gradient_direction : string, optional Controls if the mesh was generated from an isosurface with gradient descent toward objects of interest (the default), or the opposite, considering the left-hand rule. The two options are:

❗ adjust three.js camera

File sizes for each step_size:

image

step_size file size (MB)
10 1.07
9 1.42
8 1.85
7 2.62
6 3.75
5 5.74
4 9.61
3 18.38
2 42.88
1 176.62

Images from each step

ex) when step is 10 => wireframe view

image

ex) when step is 2 => wireframe view

image

πŸ‘‰ Conclusion

To adjust both the screen rendering quality and file size, appears that either step 2 or 3, would be suitable (depending on the situation)

dusunax commented 1 year ago

Close issue and move to the next documentation.