Fix gaps in hollow torus

This commit is contained in:
Starbeamrainbowlabs 2018-06-10 13:50:24 +01:00
parent a5b07ba2ff
commit 841565a75f
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -4,7 +4,7 @@
function worldedit.torus(position, major_radius, minor_radius, target_node, hollow) function worldedit.torus(position, major_radius, minor_radius, target_node, hollow)
-- position = { x, y, z } -- position = { x, y, z }
local total_radius = major_radius + minor_radius local total_radius = major_radius + minor_radius
local inner_minor_radius = minor_radius - 1.75 local inner_minor_radius = minor_radius - 2
local major_radius_sq = major_radius*major_radius local major_radius_sq = major_radius*major_radius
local minor_radius_sq = minor_radius*minor_radius local minor_radius_sq = minor_radius*minor_radius
local inner_minor_radius_sq = inner_minor_radius*inner_minor_radius local inner_minor_radius_sq = inner_minor_radius*inner_minor_radius