jscad / OpenJSCAD.org

JSCAD is an open source set of modular, browser and command line tools for creating parametric 2D and 3D designs with JavaScript code. It provides a quick, precise and reproducible method for generating 3D models, and is especially useful for 3D printing applications.
https://openjscad.xyz/
MIT License
2.61k stars 511 forks source link

Scale of basic view area #593

Open Evgsurf opened 4 years ago

Evgsurf commented 4 years ago

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

z3dev commented 4 years ago

@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.

Evgsurf commented 4 years ago

@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!

kaosat-dev commented 4 years ago

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

Evgsurf commented 4 years ago

@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

z3dev commented 3 years ago

@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...

z3dev commented 3 years ago

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.