Gathering detailed insights and metrics for axis3d-geometry
Gathering detailed insights and metrics for axis3d-geometry
Gathering detailed insights and metrics for axis3d-geometry
Gathering detailed insights and metrics for axis3d-geometry
npm install axis3d-geometry
Typescript
Module System
Node Version
NPM Version
JavaScript (99%)
HTML (1%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
13 Commits
9 Watchers
1 Branches
3 Contributors
Updated on Aug 08, 2017
Latest Version
1.0.3
Package Id
axis3d-geometry@1.0.3
Size
7.26 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
Common geometry for Axis3D. All
the geometry in this module extends the Geometry
class exposing
positions
, normals
, uvs
, and cells
as properties on the
instance effectively creating a
simplicial-complex.
1$ npm install axis3d-geometry
Ensure axis3d is already installed as a peer dependency.
1const { 2 PerspectiveCamera, 3 Material, 4 Context, 5 Frame, 6 Mesh 7} = require('axis3d') 8const { BoxGeometry } = require('axis3d-geometry') 9 10const ctx = new Context() 11const material = new Material(ctx) 12const geometry = new BoxGeometry() 13const camera = new PerspectiveCamera(ctx) 14const frame = new Frame(ctx) 15const box = new Mesh(ctx, {geometry}) 16 17frame(({time}) => { 18 camera({position: [0, 0, 10]}, () => { 19 material({}, () => { 20 box({wireframe: true}) 21 }) 22 }) 23})
1const box = new BoxGeometry(opts)
where opts
contains:
segments
- defaults tox
- Size along the x-axis. (default: 1
)y
- Size along the y-axis. (default: 1
)z
- Size along the z-axis. (default: 1
)and are passed directly to primitive-cube.
1const triangle = new TriangleGeometry()
1const cylinder = new CylinderGeometry(opts)
where opts
contains:
height
- Size along the y-axis. (default: 5
)radiusTop
- Radius of the top cross-section, or circle. (default: 1
)radiusBottom
- Radius of the bottom cross-section, or circle. (default: 1
)radialSegments
- Number of radial segments in the complex. (default: 50
)heightSegments
- Number of height segments in the complex. (default: 50
)and are passed directly to primitive-cylinder.
1const sphere = new SphereGeometry(opts)
where opts
contains:
segments
- Number of segments in the complex. (default: 32
)radius
- Spherical radius. (default: 1
)and are passed directly to primitive-sphere.
1const plane = new PlaneGeometry(opts)
where opts
contains:
segments
- Number of segments along the xy-axis. (default: {x: 5, y: 5}
)
segments.x
- Number of segments along the x-axis. (default: 5
)segments.y
- Number of segments along the y-axis. (default: 5
)size
- Size of complex along the xy-axis. (default: {x: 1, y: 1}
)
size.x
- Size of complex along the x-axis. (default: 1
)size.y
- Size of complex along the y-axis. (default: 1
)quads
- Indication to generate quads instead of triangles. (default: false
)and are passed directly to primitive-plane.
1const torus = new TorusGeometry(opts)
where opts
contains:
majorSegments
- The number of segments for the major ring. (default: 32
)minorSegments
- The number of segments for the minor rigg. (default: 64
)majorRadius
- The radius of the major ring. (default: 1
)minorRadius
- The radius of the minor ring. (default: 0.5
)arc
- The torus arc path. (default: 2*Math.PI
)and are passed directly to primitive-torus.
1const capsule = new CapsuleGeometry(opts)
where opts
contains:
radius
- The radius of the inner circle cross-section. (default: 0.5
)height
- The size along the y-axix. (default: 1
)segments
- The number of segments in complex. (default: 12
)and are passed directly to primitive-capsule.
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/13 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 SAST tool detected
Details
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
76 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