mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-01 06:21:21 +02:00
fix docsgen error
This commit is contained in:
@@ -831,7 +831,7 @@ function _isosurface_triangles(cubelist, voxsize, isovalmin, isovalmax, tritable
|
||||
|
||||
/*
|
||||
/// Generate triangles for the special case of voxel faces clipped by the bounding box
|
||||
// (more efficient than _bbfacevertices below but doesn't work with isovalue ranges)
|
||||
/// (more efficient than _bbfacevertices below but doesn't work with isovalue ranges)
|
||||
function _clipfacevertices(vcube, f, bbface, isovalmax, isovalmin) =
|
||||
let(
|
||||
vi = _MCFaceVertexIndices[bbface], // four voxel face vertex indices
|
||||
@@ -2149,7 +2149,7 @@ function isosurface(f, isovalue, voxel_size, bounding_box, reverse=false, closed
|
||||
dum2 = show_stats ? _showstats_isosurface(voxsize, bbox, isovalue, cubes, trianglepoints, faces) : 0
|
||||
) [trianglepoints, faces];
|
||||
|
||||
// internal function: get "auto" voxel size given a desired number of voxels in a bounding box
|
||||
/// internal function: get "auto" voxel size given a desired number of voxels in a bounding box
|
||||
function _getautovoxsize(bbox, numvoxels) =
|
||||
let(
|
||||
bbsiz = bbox[1]-bbox[0],
|
||||
@@ -2157,7 +2157,7 @@ function _getautovoxsize(bbox, numvoxels) =
|
||||
voxvol = bbvol/numvoxels
|
||||
) voxvol^(1/3);
|
||||
|
||||
// internal function: get voxel size, adjusted if necessary to fit bounding box
|
||||
/// internal function: get voxel size, adjusted if necessary to fit bounding box
|
||||
function _getvoxsize(voxel_size, bounding_box, fixed_bounds) =
|
||||
let(voxsize0 = is_num(voxel_size) ? [voxel_size, voxel_size, voxel_size] : voxel_size)
|
||||
fixed_bounds ?
|
||||
|
Reference in New Issue
Block a user