jscad / jscad-desktop Goto Github PK
View Code? Open in Web Editor NEWDEPRECATED : Experimental desktop app for JSCAD (See the link below)
Home Page: https://github.com/jscad/OpenJSCAD.org/tree/V2/packages
DEPRECATED : Experimental desktop app for JSCAD (See the link below)
Home Page: https://github.com/jscad/OpenJSCAD.org/tree/V2/packages
It should be at least allow people to 'jump' in without having to use an external text editor
Can solve a few issues on some devices (already found, discussed & validated in the community forum)
Line 63 in 5b6549b
Providing an AppImage would have, among others, these advantages:
appimaged
--appimage-extract
parameterHere 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.
Ie ability to load directly
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;
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.
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.
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.
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.
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
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.
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).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.