Cone shape options object that extends OBJ_Generic3All and OBJ_FigurePrimitive
By default, a cone with its base at the origin and its tip along the x axis will be created.
To test examples, append them to the boilerplate
figure.add({ make: 'cone', radius: 0.2, sides: 20, color: [1, 0, 0, 1], line: [[0, 0, 0], [0, 0.5, 0]],}); Copy
figure.add({ make: 'cone', radius: 0.2, sides: 20, color: [1, 0, 0, 1], line: [[0, 0, 0], [0, 0.5, 0]],});
// Cone with curve normalsfigure.add({ make: 'cone', radius: 0.2, normals: 'curve', sides: 20, color: [1, 0, 0, 1], line: [[0, 0, 0], [0, 0.5, 0]],}); Copy
// Cone with curve normalsfigure.add({ make: 'cone', radius: 0.2, normals: 'curve', sides: 20, color: [1, 0, 0, 1], line: [[0, 0, 0], [0, 0.5, 0]],});
// Wire mesh conefigure.add({ make: 'cone', radius: 0.2, normals: 'curve', sides: 20, color: [1, 0, 0, 1], line: [[0, 0, 0], [0, 0.5, 0]], lines: true,});@interface Copy
// Wire mesh conefigure.add({ make: 'cone', radius: 0.2, normals: 'curve', sides: 20, color: [1, 0, 0, 1], line: [[0, 0, 0], [0, 0.5, 0]], lines: true,});@interface
Cone shape options object that extends OBJ_Generic3All and OBJ_FigurePrimitive
By default, a cone with its base at the origin and its tip along the x axis will be created.
See
To test examples, append them to the boilerplate
Example
Example
Example