Questions tagged [openjscad]

OpenJSCAD is a web-based 2D and 3D modeling tool that uses JavaScript.

OpenJSCAD is a web-based 2D and 3D modeling tool that uses JavaScript.

15 questions
3
votes
2 answers

Integrating OpenJSCAD into MediaWiki

The current solutions I know of for displaying JSCad Designs: https://www.openjscad.org/…
Wolfgang Fahl
  • 15,016
  • 11
  • 93
  • 186
3
votes
0 answers

Converting JSCAD / JS output to JSON (for three.js)

I'm looking for a way to convert the native output (parametric CAD?) of OpenJSCAD (jscad / js file) i.e. function model() { return polyhedron({points:[ [41.4780, -44.9832, 0.0000], [41.8432, -43.0168, 0.0000], [41.4780, -44.9832, 1.0579], [41.8432,…
Huskie69
  • 795
  • 3
  • 11
  • 31
3
votes
1 answer

Is that possible to draw a line using Openscad by joining different points?

I'm trying regularly to join the different points to draw the straight line in OpenScad. But I could'nt able to find any way to draw the line. But I can able to draw the definite shapes like cubes,spheres,cylinders,etc... So please help me by…
2
votes
1 answer

OpenJSCAD: Can't find command for 3D to 2D Projection

In openSCAD there is a command to project a 3D model to a 2D surface. I can't find anything about this command in the JSCAD Documentation. Is there a way to do the same in openJSCAD.
Bruce
  • 121
  • 4
2
votes
1 answer

how to import an image into openjscad

I am trying to draw on an image that I have. 2D the image is of a laptop and I want to draw lines around it to get measurements. I am very new to openjscad and am stuck on this very first step. Any help would be appreciated
Asim Zaidi
  • 27,016
  • 49
  • 132
  • 221
2
votes
2 answers

openJSCAD include files

I would like to load multiple files with OpenJSCAD. I tried 1 without any success. I'm using OpenJSCAD with Firefox on Ubuntu 18.04. I tried both the offline and online versions.
Davidd12
  • 71
  • 2
2
votes
1 answer

Pass values from openjscad to javascript

is it possible to pass a value from openjscad to javascript? I would like to show the dimensions of a 3d-object in a div or any other html-element. Example: A cube is created with openjscad with the following parameters: function main() { var…
Lukas
  • 148
  • 2
  • 12
1
vote
1 answer

Including source of file inside a Vue-cli project (type jscad)

I want to load a .jscad file into a vue component. I have set up an vue-cli project, installed this openjscad-vue viewer using npm and am using the openjscad component. This component has the prop design which should allow specifying a path to a…
Siruneke
  • 61
  • 5
1
vote
1 answer

Javascript 3D Model

I need support in finishing some javascript code that finally should generate a 3D model. However I'm struggling as I keep getting errors. Kindly find the code The code is supposed to create a 3D file similar to the images found in the link below:…
James LeBorn
  • 201
  • 3
  • 12
1
vote
2 answers

Javascript accessing dynamic object properties

I am a novice programmer working with OpenJScad written in Javascript to build 3D models. I am trying to figure out how to structure my code so that I can access an object's instance properties that are dynamically created with user input…
0
votes
0 answers

Javascript Library for 2d CAD with Intersections and Fillet

I'm looking for a javascript library that does 2D computer aided design. Main features I'm looking for are: Generalized parametric curves Finding the closest points on 2 non-intersecting curves Intersections of 2 curves. Possible to create…
Vipul Rajan
  • 494
  • 1
  • 5
  • 16
0
votes
0 answers

JSCAD/OPENJSCAD 3D model example

Is there any simple example of creating 3D model of simple wall of bricks using JSCAD/OPENJSCAD and exporting it as STL file.
user530158
  • 333
  • 7
  • 18
0
votes
0 answers

3D Modelling Library (openscad) Java integration

I want to build very simple 3D Model of Single Room based on user inputs. User will provide inputs like what will be size of wall , no of rooms , how many doors should be there etc. Based on input programme should generate 3D model image that will…
user530158
  • 333
  • 7
  • 18
0
votes
1 answer

openjscad - Javascript vector rotate to rotate by vector

I am using https://openjscad.org/ I have two-fold question about javascript vector rotate: vec=vec.rotateX(angle0); vec=vec.rotateY(angle1); vec=vec.rotateZ(angle2); 1) Does javascript rotates vectors in degrees or radians? 2) How these 3 lines…
Petras
  • 163
  • 1
  • 1
  • 12
0
votes
0 answers

Javascript 3D Model Error

I need support in editing a script that generates a 3D model. However I'm struggling as I keep getting errors. function handleImage(e) { var reader = new FileReader(); reader.onload = function(event) { var img = new Image(); …
Ahsan Alii
  • 153
  • 1
  • 16