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

Code works in OpenSCAD, but not https://openjscad.xyz/ - it says processing and never completes

Open andytriboletti opened this issue 1 year ago • 1 comments

Expected Behavior

I expect to be able to see the plant marker design on https://openjscad.xyz/ like it works in OpenSCAD on desktop.

Actual Behavior

it says processing, please wait then nothing happens.

Steps to Reproduce the Problem

  1. Load this code into jscad at https://openjscad.xyz/ using Google Chrome:
// Customizable Garden Plant Label Stake
// by Mark Thompson

text_string = "Lavender";
text_size = 10;
//text_size = 12;

text_thickness = 3;
//text_font = "Nimbus Sans L:Bold";
text_font = "Roboto:Bold";

text_y_offset_adjust = 0;

//stake_length = 125;
stake_length = 150;
stake_thickness = 5;
stake_height = 5;

point_length = 10;
tip_size = 0.5;

{
    translate([0,text_y_offset_adjust,0])
        linear_extrude(height=text_thickness, convexity=4)
            text(text_string,size=text_size,font=text_font);

    translate([stake_length/2,-stake_height/2,stake_thickness/2]) {
        difference() {
            hull() {
                cube([stake_length,stake_height,stake_thickness],true);
                translate([stake_length/2+point_length,stake_height/2-tip_size/2,-stake_thickness/2+tip_size/2])
                    cube([tip_size,tip_size,tip_size],true);
            }
            
            translate([0,-stake_height/2,stake_thickness/2])
                cube([stake_length+point_length*2+0.1,stake_height,stake_thickness],true);
        }
    }
}

code from https://www.thingiverse.com/thing:4740308

  1. Press shift enter to render
  2. Observe processing that never completes

Specifications

  • Version: Using website https://openjscad.xyz/ on Mac on Chrome
  • Platform:
  • Environment: (browser, local server, node.js etc)

andytriboletti avatar Nov 27 '24 23:11 andytriboletti

@andytriboletti welcome

First, like many of the issues like this... there is no support for OpenSCAD designs. You can read some of the related issues to find out why, but basically there's no one interested in porting the old converter code to V2 JSCAD.

Second, it's not difficult to convert simple designs. And there are even some helper libraries for reference. Hopefully, you will find the jump easy, and JSCAD even easier to use. It is JavaScript.

if you need some assistance then jump over to the Discord channel, and chat with some of the users.

z3dev avatar Nov 28 '24 10:11 z3dev