OpenJSCAD.org icon indicating copy to clipboard operation
OpenJSCAD.org copied to clipboard

Scale of basic view area

Open Evgsurf opened this issue 4 years ago • 6 comments

Expected Behavior

It should be possible to set init metrics of basic view area for example init_area(10000,10000,10000); or init_area(10000);

Actual Behavior

it is not possible to draw "big" models

Steps to Reproduce the Problem

just to run

function main () { return cube({size:[96,38,3000]}); }

it is not possibe to get whole model at view.

Specifications

  • Version: actual at https://openjscad.org/
  • Platform: Ubuntu 19.04 x64
  • Environment: https://openjscad.org/ at Chrome 83.0.4103.61

Evgsurf avatar May 26 '20 11:05 Evgsurf

@Evgsurf thanks for using JSCAD

FYI, the internal math is calibrated for 3D printing, including the boolean operations. Those large scale designs may have some issues. If so then try scaling objects and try again.

z3dev avatar May 26 '20 11:05 z3dev

@z3dev thank you for fast answer. I try to use OpenJSCAD I very like it because:

  1. I am an programmer and I can use all power and force of my knowledge and JavaScript. For example I can calculate materials exactly at model. And I have not limitations of openSCAD.
  2. Most of times it is necessary to make very simple models and I do not need to install some heavy software.
  3. It is very ease to distribute models to other people

I see about 3D printing. Of couse I can use user software scaling. In my case, my friend ask me to make model of house frame. Usually people use millimeters (at old world :) ). So one board is cube({size:[96,38,3000]}); I use meters now - cube([0.038,0.096,3]) . It does work, but is not very comfortable. I think it would be very nice to define area for not "classic" size models.

Thank you for very nice software!

Evgsurf avatar May 27 '20 05:05 Evgsurf

@Evgsurf thanks for the feedback ! by "basic view area" do you mean, the grid, the camera position, or both ?

kaosat-dev avatar May 27 '20 09:05 kaosat-dev

@kaosat-dev I mean size of the grid. Camera position ... hmmm I do not need it, but it could be very good feature for online model presentation

Evgsurf avatar May 27 '20 09:05 Evgsurf

@Evgsurf It should be possible to recalculate the grid size to be proportional to the shape. I was wondering... Do you have any thoughts on what proportions would be useful?

I was thinking the grid size should be...

  • large enough to fit about the shape(s), possibly even 2X
  • major grid lines should be multiples of 10 (10,100,1000,...)
  • and 10 minor grid lines per major

z3dev avatar Sep 05 '20 07:09 z3dev

The resizing of the grid has not been implemented so re-opening this issue.

@Evgsurf please see the new WEB UI at openjscad.xyz as there is now an option to 'auto zoom'. this should handle very large designs.

z3dev avatar May 07 '21 01:05 z3dev