Gathering detailed insights and metrics for axis3d-extrude-geometry
Gathering detailed insights and metrics for axis3d-extrude-geometry
Gathering detailed insights and metrics for axis3d-extrude-geometry
Gathering detailed insights and metrics for axis3d-extrude-geometry
npm install axis3d-extrude-geometry
Typescript
Module System
Node Version
NPM Version
JavaScript (96.23%)
HTML (3.77%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
4 Stars
7 Commits
9 Watchers
1 Branches
3 Contributors
Updated on Nov 06, 2020
Latest Version
1.0.0
Package Id
axis3d-extrude-geometry@1.0.0
Size
4.38 kB
NPM Version
5.3.0
Node Version
7.10.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
Geometry extrusion for Axis3D.
This modules provides a class that accepts an array of 2D positions and extrudes that shape into 3D. It attempts to compute a simplicial complex from given parameters. Edges, cells, and path can also be provided, otherwise they are computed. This class leverages clean-pslg to remove duplicate vertices and edges from a planar straight line graph using iterated snap rounding. If cells are not given, this class uses Constrained Delaunay triangulation by way of cdt2d to compute them.
1new ExtrudeGeometry({ positions: positions })
1$ npm install axis3d axis3d-extrude-geometry
1const { PerspectiveCamera } = require('axis3d/camera') 2const { ExtrudeGeometry } = require('axis3d-extrude-geometry') 3const { Material } = require('axis3d/material') 4const { Context } = require('axis3d') 5const { Frame } = require('axis3d/frame') 6const { Mesh } = require('axis3d/mesh') 7 8const geometry = new ExtrudeGeometry({positions: [0.5, 1.0, -0.5]}) 9const material = new Material(ctx) 10const camera = new PerspectiveCamera(ctx) 11const frame = new Frame(ctx) 12const mesh = new Mesh(ctx, {geometry}) 13 14frame(() => { 15 camera({position: [0, 0, 10]}, () => { 16 material({wireframe: true}, () => { 17 mesh() 18 }) 19 }) 20})
Extends the built-in Geometry
class in Axis3D.
1new ExtrudeGeometry(opts)
where opts
contains
positions
- An array of 2D vectors that form points in a polygonedges
- An array of 2D vectors of indices ([i, j]
) to compute complex cellscells
- An array of 3D vectors of indices to the complex positionspath
- An array of 3D ([x, y, z]
) or 4D ([x, y, z, r]
) vectors where r
is the twist angle in radiansclosed
- Indicates a closed path. (Default: true
)MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
no SAST tool detected
Details
Reason
Found 0/7 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
70 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More