Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
andytriboletti opened this issue Nov 27, 2024 · 1 comment

Comments

@andytriboletti
Copy link

andytriboletti commented Nov 27, 2024

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)
@z3dev
Copy link
Member

z3dev commented Nov 28, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants