Giter Club home page Giter Club logo

jscad-desktop's People

Contributors

kaosat-dev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jscad-desktop's Issues

Add text editor

It should be at least allow people to 'jump' in without having to use an external text editor

fix various issues with parameters

  • checkboxes behaviour is absurd / broken, needs to be fixed
  • radio buttons are also totally broken
  • sliders do not return useable numeric values either

Please provide an AppImage for download on GitHub Releases

"target": "AppImage",

Providing an AppImage would have, among others, these advantages:

  • Applications packaged as an AppImage can run on many distributions (including Ubuntu, Fedora, openSUSE, CentOS, elementaryOS, Linux Mint, and others)
  • One app = one file = super simple for users: just download one AppImage file, make it executable, and run
  • No unpacking or installation necessary
  • No root needed
  • No system libraries changed
  • Works out of the box, no installation of runtimes needed
  • Optional desktop integration with appimaged
  • Optional binary delta updates, e.g., for continuous builds (only download the binary diff) using AppImageUpdate
  • Can optionally GPG2-sign your AppImages (inside the file)
  • Works on Live ISOs
  • Can use the same AppImages when dual-booting multiple distributions
  • Can be listed in the AppImageHub central directory of available AppImages
  • Can double as a self-extracting compressed archive with the --appimage-extract parameter

Here is an overview of projects that are already distributing upstream-provided, official AppImages.

If you have questions, AppImage developers are on #AppImage on irc.freenode.net.

Common.js module failing

On Windows 10 using dev-win

Error: Cannot find module './nemaMount.jscad' details: Error: Cannot find module './nemaMount.jscad'. Note both files are in the same folder.

test.jscad

var nema17Mount = require("./nemaMount.jscad")

debugger
function main(params) {
  return nema17Mount();
}

nemaMount.jscad

function extrudeAndMirror(profile2d, height) {
  var half = linear_extrude({ height: height }, profile2d);

  return union(half, half.mirroredX());
}

function nema17Mount() {
  var t = 3;
  var w = 50;

  var w2 = w / 2;
  var cutoutWidth = 6;
  var cutoutHeight = Math.sqrt(2 * cutoutWidth * cutoutWidth) / 2;
  var cutout = square({
    size: [cutoutWidth, cutoutWidth]
  })
    .rotateZ(45)
    .translate([w2, -cutoutHeight]);
  var cutouts = cutout.union(cutout.translate([w2, 0, 0]));
  var base = square({
    size: [w2, w]
  }).subtract(cutouts);
  var mountOffsetFromCenter = 15;

  function lowerPlate() {
    var mountHoleRadius = 4.25 / 2;
    var mountHole = circle({ r: mountHoleRadius }).translate([
      mountOffsetFromCenter,
      11
    ]);

    var mountHoles = hull(mountHole, mountHole.translate([0, 30]));
    var lowerPlate = base.subtract(mountHoles).translate([0, -w, 0]);

    return extrudeAndMirror(lowerPlate, t);
  }

  function upperPlate() {
    var motorMount = circle({
      r: 3.5 / 2,
      center: true
    }).translate([mountOffsetFromCenter, 5.5]);

    var motorClearance = circle({ r: 11, center: true }).translate([0, 21, 0]);

    var holes = union(
      motorMount,
      motorMount.translate([0, 31, 0]),
      motorClearance
    );
    var upperPlate = extrudeAndMirror(base.subtract(holes), t)
      .translate([0, -w, 0])
      .rotateX(-90)
      .translate([0, 0, t]);

    return upperPlate;
  }

  var bend = intersection(
    cube({ size: [w, t, t], center: [true, false, false] }),
    cylinder({ h: w, r: t, center: true })
      .rotateY(90)
      .translate([0, 0, t])
  );

  var bracket = linear_extrude(
    {
      height: t
    },
    polygon({ points: [[0, 0], [20, 0], [0, 15]] })
  )
    .rotateY(-90)
    .rotateZ(180)
    .translate([w2 - t, 0, 0]);

  var brackets = union(bracket, bracket.mirroredX());

  return union(lowerPlate(), upperPlate(), bend, brackets);
}

module.exports = nema17Mount;

Unresponsive 0.0.2

Have a project that has not changed over the last 3 days. After pulling latest (0.0.2) I get a processing please wait indefinitely. My design isn't that complicated yet and on a Nvidia GTX1080. Not sure what changed but maybe timeouts or reducing the default polys in the UI is necessary.

Display debug message on generation failure

The desktop just display message 'Error: Failed to generate design within an acceptable time' when the source code has syntax error. Most of the time, it's impossible to debug where the problem is.

At least an information about which line in file has error would be useful.

I know that it's pre-pre-alpha version. But it's an annoying issue that blocks me to use it.

considering using vue.js/vuex to enable live reload without losing state

Currently if you make underlying changes to components the params UI gets reset to its defaults every time making it hard to see minor changes without a bunch of setup. Would it help to give of prototype of how to set that up? Not sure if there are any special considerations for electron. Has added benefits of time traveling debugger, state and async flow management via chrome extensions.

Not able to run in windows

basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
          ^^^^^^^

SyntaxError: missing ) after argument list
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:152:10)
    at Module._compile (module.js:605:28)
    at Object.Module._extensions..js (module.js:652:10)
    at Module.load (module.js:560:32)
    at tryModuleLoad (module.js:503:12)
    at Function.Module._load (module.js:495:3)
    at Function.Module.runMain (module.js:682:10)
    at startup (bootstrap_node.js:191:16)
    at bootstrap_node.js:613:3

What is it trying to do here? Sure there is a node way to do this cross platform. Happy to help, just want a use case to work against.

Error: Uncaught Error: Cannot find module

I'm getting "Error: Uncaught Error: Cannot find module 'C:UsersAndreasAppDataLocalProgramsjscad-desktop esourcesapp.asarsrccorecode-loading treeApi' line: 487, filename:module.js stack: undefined" when trying to load *.jscad files in v0.3.0.

Binary installed using jscad-desktop.Setup.0.3.0.exe

Retain camera matrix in reload

Making small changes results in the camera being reset. This makes it difficult when zoomed in on a specific detail. Adding a key shortcut to frame all or a auto frame feature that's possible to be turned off would be great.

Consider adding matcap shader

Demo

When setting a darker color I noticed that there are yellowish lights in the scene that can't be controlled. An alternative/addition to scene lighting that looks great is spherical light mapping. Here's a tutorial on implementing and a working three.js npm of the shader. Maybe the app checks for a certain property on the feature. It would enhance the visualization and in most cases in a forward pass faster than even a single point light in the scene (texture lookup vs many dot products).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.