polygons-to-obj:获取面和面数组并返回OBJ字符串

时间:2024-06-11 17:25:32
【文件属性】:

文件名称:polygons-to-obj:获取面和面数组并返回OBJ字符串

文件大小:4KB

文件格式:ZIP

更新时间:2024-06-11 17:25:32

JavaScript

多边形到OBJ 获取面和面数组并返回OBJ字符串 用法 var polygons2obj = require ( "polygons-to-obj" ) ; var polygons = [ [ [ x , y , z ] , [ ... ] ] , [ [ x , y , z ] , [ ... ] ] ] ; var faces = [ [ [ v1 , v2 , v3 ] , [ ... ] ] , [ [ v1 , v2 , v3 ] , [ ... ] ] ] ; // Point to use as [0, 0, 0] origin for conversion var origin = [ 0 , 0 , 0 ] ; // Vertical offset to apply to points var verticalOffset = 0 ; // Z-axis is th


【文件预览】:
polygons-to-obj-master
----index.js(4KB)
----package.json(713B)
----LICENSE(1KB)
----.gitignore(1KB)
----README.md(523B)

网友评论