[Issue#1] Display circular arcs with G02 (clockwise) and G03 (counterclockwise) in the 3D GCode viewer

未分类 bolang 6个月前 (10-14) 36次浏览

Issue #1 | 状态: 已关闭 | 作者: cheton | 创建时间: 2015-09-23


Support G02/G03 for circular interpolation in the 3D GCode viewer.

Refer to this article “Circular Arcs With G02 and G03” for detailed instructions.


评论 (6)


#2 – cheton 于 2015-10-28

EllipseCurve
Creates a 2d curve in the shape of an ellipse.
http://threejs.org/docs/#Reference/Extras.Curves/EllipseCurve



#4 – cheton 于 2015-11-13

Rendering Lines and Bezier Curves in Three.js and WebGL
http://www.lab4games.net/zz85/blog/2014/09/08/rendering-lines-and-bezier-curves-in-three-js-and-webgl/

Sample code:

js
let geometry = new THREE.Geometry();
let x0 = 0, y0 = 0;
let x1 = 0, y1 = 10;
let x2 = 10, y2 = 10;
let curve = new THREE.QuadraticBezierCurve3(
new THREE.Vector3(x0, y0, 0),
new THREE.Vector3(x1, y1, 0),
new THREE.Vector3(x2, y2, 0)
);
geometry.vertices = geometry.vertices.concat(curve.getPoints(100));
let material = new THREE.LineBasicMaterial({ color : 0xff0000, linewidth: 2 });
let ellipse = new THREE.Line(geometry, material);
scene.add(ellipse);


#5 – cheton 于 2015-11-18

Added in v0.7.0
https://github.com/cheton/cnc.js/releases/tag/v0.7.0


#6 – cheton 于 2015-11-19

G02 AND G03 – ARC AT FEED RATE
http://www.tormach.com/g02_g03.html


原始Issue: https://github.com/cncjs/cncjs/issues/1

喜欢 (0)