637 lines
17 KiB
Plaintext
Executable File
637 lines
17 KiB
Plaintext
Executable File
-- Scripted object plugin - generated by Plug-O-Matic v1.1 (martin@breidt.net)
|
|
--
|
|
-- Run this script or place it script in the $scripts\startup directory.
|
|
-- This will create a new object under Geometry>Plug-O-Matic
|
|
-- Click and drag to create a new object. Hold Ctrl do constrain the new object
|
|
-- to the original proportions.
|
|
--
|
|
-- Export options used: Material IDs - false Smoothing Groups - true Edge Visibility - true
|
|
|
|
plugin simpleObject ladder
|
|
name:"ladder"
|
|
category:"GTA Building blocks"
|
|
classID:#(1383580985,1262219234)
|
|
(
|
|
parameters main rollout:params (
|
|
length type:#float ui:length default:0.0825615
|
|
width type:#float ui:width default:0.508038
|
|
height type:#float ui:height default:3.08818
|
|
)
|
|
rollout params "ladder Parameters" (
|
|
spinner length "Length" range:[0,10000,0.0825615] align:#right fieldwidth:60
|
|
spinner width "Width" range:[0,10000,0.508038] align:#right fieldwidth:60
|
|
spinner height "Height" range:[0,10000,3.08818] align:#right fieldwidth:60
|
|
)
|
|
on buildMesh do
|
|
(
|
|
vp = #()
|
|
fl = #()
|
|
fs = #()
|
|
fe = #()
|
|
-- Vertex data ---------------------------
|
|
append vp [-0.0324377,-0.0636603,0]
|
|
append vp [-0.00326764,-0.0636603,0]
|
|
append vp [-0.0324377,0.0636611,0]
|
|
append vp [-0.00326764,0.0636611,0]
|
|
append vp [-0.0324376,-0.0636603,3.08818]
|
|
append vp [-0.00326751,-0.0636603,3.08818]
|
|
append vp [-0.0324376,0.0636611,3.08818]
|
|
append vp [-0.00326751,0.0636611,3.08818]
|
|
append vp [-0.511306,-0.0636603,0]
|
|
append vp [-0.482136,-0.0636603,0]
|
|
append vp [-0.511306,0.0636611,0]
|
|
append vp [-0.482136,0.0636611,0]
|
|
append vp [-0.511306,-0.0636603,3.08818]
|
|
append vp [-0.482136,-0.0636603,3.08818]
|
|
append vp [-0.511306,0.0636611,3.08818]
|
|
append vp [-0.482136,0.0636611,3.08818]
|
|
append vp [-0.0241296,0.0445817,2.56013]
|
|
append vp [-0.0241296,0.0190048,2.56013]
|
|
append vp [-0.0241296,-0.0452795,2.56013]
|
|
append vp [-0.0241296,0.0445817,2.60017]
|
|
append vp [-0.0241296,0.0190048,2.60017]
|
|
append vp [-0.0241296,-0.0452795,2.58852]
|
|
append vp [-0.489445,0.0445817,2.56013]
|
|
append vp [-0.489445,0.0190048,2.56013]
|
|
append vp [-0.489445,-0.045278,2.56013]
|
|
append vp [-0.489445,0.0445817,2.60017]
|
|
append vp [-0.489445,0.0190048,2.60017]
|
|
append vp [-0.489445,-0.045278,2.58852]
|
|
append vp [-0.0241301,0.0445817,2.84806]
|
|
append vp [-0.0241301,0.0190048,2.84806]
|
|
append vp [-0.0241301,-0.0452795,2.84806]
|
|
append vp [-0.0241301,0.0445817,2.8881]
|
|
append vp [-0.0241301,0.0190048,2.8881]
|
|
append vp [-0.0241301,-0.0452795,2.87645]
|
|
append vp [-0.489445,0.0445817,2.84806]
|
|
append vp [-0.489445,0.0190048,2.84806]
|
|
append vp [-0.489445,-0.045278,2.84806]
|
|
append vp [-0.489445,0.0445817,2.8881]
|
|
append vp [-0.489445,0.0190048,2.8881]
|
|
append vp [-0.489445,-0.045278,2.87645]
|
|
append vp [-0.0241297,0.0445817,2.27053]
|
|
append vp [-0.0241301,0.0190048,2.27053]
|
|
append vp [-0.0241301,-0.0452795,2.27053]
|
|
append vp [-0.0241297,0.0445817,2.31057]
|
|
append vp [-0.0241301,0.0190048,2.31057]
|
|
append vp [-0.0241301,-0.0452795,2.29892]
|
|
append vp [-0.489445,0.0445817,2.27053]
|
|
append vp [-0.489445,0.0190048,2.27053]
|
|
append vp [-0.489445,-0.045278,2.27053]
|
|
append vp [-0.489445,0.0445817,2.31057]
|
|
append vp [-0.489445,0.0190048,2.31057]
|
|
append vp [-0.489445,-0.045278,2.29892]
|
|
append vp [-0.0241297,0.0445817,2.00558]
|
|
append vp [-0.0241297,0.0190048,2.00558]
|
|
append vp [-0.0241297,-0.045278,2.00558]
|
|
append vp [-0.0241297,0.0445817,2.04562]
|
|
append vp [-0.0241297,0.0190048,2.04562]
|
|
append vp [-0.0241297,-0.045278,2.03397]
|
|
append vp [-0.489445,0.0445817,2.00558]
|
|
append vp [-0.489445,0.0190048,2.00558]
|
|
append vp [-0.489445,-0.045278,2.00558]
|
|
append vp [-0.489445,0.0445817,2.04562]
|
|
append vp [-0.489445,0.0190048,2.04562]
|
|
append vp [-0.489445,-0.045278,2.03397]
|
|
append vp [-0.0241297,0.0445817,1.71765]
|
|
append vp [-0.0241297,0.0190048,1.71765]
|
|
append vp [-0.0241297,-0.045278,1.71765]
|
|
append vp [-0.0241297,0.0445817,1.75769]
|
|
append vp [-0.0241297,0.0190048,1.75769]
|
|
append vp [-0.0241297,-0.045278,1.74604]
|
|
append vp [-0.489445,0.0445817,1.71765]
|
|
append vp [-0.489445,0.0190048,1.71765]
|
|
append vp [-0.489445,-0.045278,1.71765]
|
|
append vp [-0.489445,0.0445817,1.75769]
|
|
append vp [-0.489445,0.0190048,1.75769]
|
|
append vp [-0.489445,-0.045278,1.74604]
|
|
append vp [-0.0241297,0.0445817,1.42805]
|
|
append vp [-0.0241297,0.0190048,1.42805]
|
|
append vp [-0.0241297,-0.045278,1.42805]
|
|
append vp [-0.0241297,0.0445817,1.46809]
|
|
append vp [-0.0241297,0.0190048,1.46809]
|
|
append vp [-0.0241297,-0.045278,1.45644]
|
|
append vp [-0.489445,0.0445817,1.42805]
|
|
append vp [-0.489445,0.0190048,1.42805]
|
|
append vp [-0.489445,-0.045278,1.42805]
|
|
append vp [-0.489445,0.0445817,1.46809]
|
|
append vp [-0.489445,0.0190048,1.46809]
|
|
append vp [-0.489445,-0.045278,1.45644]
|
|
append vp [-0.0241297,0.0445817,1.16297]
|
|
append vp [-0.0241297,0.0190048,1.16297]
|
|
append vp [-0.0241297,-0.045278,1.16297]
|
|
append vp [-0.0241297,0.0445817,1.20301]
|
|
append vp [-0.0241297,0.0190048,1.20301]
|
|
append vp [-0.0241297,-0.045278,1.19136]
|
|
append vp [-0.489445,0.0445817,1.16297]
|
|
append vp [-0.489445,0.0190048,1.16297]
|
|
append vp [-0.489445,-0.045278,1.16297]
|
|
append vp [-0.489445,0.0445817,1.20301]
|
|
append vp [-0.489445,0.0190048,1.20301]
|
|
append vp [-0.489445,-0.045278,1.19136]
|
|
append vp [-0.0241297,0.0445817,0.875043]
|
|
append vp [-0.0241297,0.0190048,0.875043]
|
|
append vp [-0.0241297,-0.045278,0.875043]
|
|
append vp [-0.0241297,0.0445817,0.915083]
|
|
append vp [-0.0241297,0.0190048,0.915083]
|
|
append vp [-0.0241297,-0.045278,0.903431]
|
|
append vp [-0.489445,0.0445817,0.875043]
|
|
append vp [-0.489445,0.0190048,0.875043]
|
|
append vp [-0.489445,-0.045278,0.875043]
|
|
append vp [-0.489445,0.0445817,0.915083]
|
|
append vp [-0.489445,0.0190048,0.915083]
|
|
append vp [-0.489445,-0.045278,0.903431]
|
|
append vp [-0.0241297,0.0445817,0.585443]
|
|
append vp [-0.0241297,0.0190048,0.585443]
|
|
append vp [-0.0241297,-0.045278,0.585443]
|
|
append vp [-0.0241297,0.0445817,0.625482]
|
|
append vp [-0.0241297,0.0190048,0.625482]
|
|
append vp [-0.0241297,-0.045278,0.613831]
|
|
append vp [-0.489445,0.0445817,0.585443]
|
|
append vp [-0.489445,0.0190048,0.585443]
|
|
append vp [-0.489445,-0.045278,0.585443]
|
|
append vp [-0.489445,0.0445817,0.625482]
|
|
append vp [-0.489445,0.0190048,0.625482]
|
|
append vp [-0.489445,-0.045278,0.613831]
|
|
append vp [-0.0241297,0.0445817,0.319996]
|
|
append vp [-0.0241297,0.0190048,0.319996]
|
|
append vp [-0.0241297,-0.045278,0.319996]
|
|
append vp [-0.0241297,0.0445817,0.360035]
|
|
append vp [-0.0241297,0.0190048,0.360035]
|
|
append vp [-0.0241297,-0.045278,0.348384]
|
|
append vp [-0.489445,0.0445817,0.319996]
|
|
append vp [-0.489445,0.0190048,0.319996]
|
|
append vp [-0.489445,-0.045278,0.319996]
|
|
append vp [-0.489445,0.0445817,0.360035]
|
|
append vp [-0.489445,0.0190048,0.360035]
|
|
append vp [-0.489445,-0.045278,0.348384]
|
|
for i = 1 to 136 do (
|
|
oldpos = vp[i]
|
|
vp[i] = point3 (oldpos.x * (width/0.508038)) (oldpos.y * (length/0.0825615)) (oldpos.z * (height/3.08818))
|
|
)
|
|
-- Face data ---------------------------
|
|
append fl [1,3,4]
|
|
append fl [4,2,1]
|
|
append fl [5,6,8]
|
|
append fl [8,7,5]
|
|
append fl [1,2,6]
|
|
append fl [6,5,1]
|
|
append fl [2,4,8]
|
|
append fl [8,6,2]
|
|
append fl [4,3,7]
|
|
append fl [7,8,4]
|
|
append fl [3,1,5]
|
|
append fl [5,7,3]
|
|
append fl [9,11,12]
|
|
append fl [12,10,9]
|
|
append fl [13,14,16]
|
|
append fl [16,15,13]
|
|
append fl [9,10,14]
|
|
append fl [14,13,9]
|
|
append fl [10,12,16]
|
|
append fl [16,14,10]
|
|
append fl [12,11,15]
|
|
append fl [15,16,12]
|
|
append fl [11,9,13]
|
|
append fl [13,15,11]
|
|
append fl [17,18,24]
|
|
append fl [24,23,17]
|
|
append fl [18,19,25]
|
|
append fl [25,24,18]
|
|
append fl [19,22,28]
|
|
append fl [28,25,19]
|
|
append fl [22,21,27]
|
|
append fl [27,28,22]
|
|
append fl [21,20,26]
|
|
append fl [26,27,21]
|
|
append fl [20,17,23]
|
|
append fl [23,26,20]
|
|
append fl [29,30,36]
|
|
append fl [36,35,29]
|
|
append fl [30,31,37]
|
|
append fl [37,36,30]
|
|
append fl [31,34,40]
|
|
append fl [40,37,31]
|
|
append fl [34,33,39]
|
|
append fl [39,40,34]
|
|
append fl [33,32,38]
|
|
append fl [38,39,33]
|
|
append fl [32,29,35]
|
|
append fl [35,38,32]
|
|
append fl [41,42,48]
|
|
append fl [48,47,41]
|
|
append fl [42,43,49]
|
|
append fl [49,48,42]
|
|
append fl [43,46,52]
|
|
append fl [52,49,43]
|
|
append fl [46,45,51]
|
|
append fl [51,52,46]
|
|
append fl [45,44,50]
|
|
append fl [50,51,45]
|
|
append fl [44,41,47]
|
|
append fl [47,50,44]
|
|
append fl [53,54,60]
|
|
append fl [60,59,53]
|
|
append fl [54,55,61]
|
|
append fl [61,60,54]
|
|
append fl [55,58,64]
|
|
append fl [64,61,55]
|
|
append fl [58,57,63]
|
|
append fl [63,64,58]
|
|
append fl [57,56,62]
|
|
append fl [62,63,57]
|
|
append fl [56,53,59]
|
|
append fl [59,62,56]
|
|
append fl [65,66,72]
|
|
append fl [72,71,65]
|
|
append fl [66,67,73]
|
|
append fl [73,72,66]
|
|
append fl [67,70,76]
|
|
append fl [76,73,67]
|
|
append fl [70,69,75]
|
|
append fl [75,76,70]
|
|
append fl [69,68,74]
|
|
append fl [74,75,69]
|
|
append fl [68,65,71]
|
|
append fl [71,74,68]
|
|
append fl [77,78,84]
|
|
append fl [84,83,77]
|
|
append fl [78,79,85]
|
|
append fl [85,84,78]
|
|
append fl [79,82,88]
|
|
append fl [88,85,79]
|
|
append fl [82,81,87]
|
|
append fl [87,88,82]
|
|
append fl [81,80,86]
|
|
append fl [86,87,81]
|
|
append fl [80,77,83]
|
|
append fl [83,86,80]
|
|
append fl [89,90,96]
|
|
append fl [96,95,89]
|
|
append fl [90,91,97]
|
|
append fl [97,96,90]
|
|
append fl [91,94,100]
|
|
append fl [100,97,91]
|
|
append fl [94,93,99]
|
|
append fl [99,100,94]
|
|
append fl [93,92,98]
|
|
append fl [98,99,93]
|
|
append fl [92,89,95]
|
|
append fl [95,98,92]
|
|
append fl [101,102,108]
|
|
append fl [108,107,101]
|
|
append fl [102,103,109]
|
|
append fl [109,108,102]
|
|
append fl [103,106,112]
|
|
append fl [112,109,103]
|
|
append fl [106,105,111]
|
|
append fl [111,112,106]
|
|
append fl [105,104,110]
|
|
append fl [110,111,105]
|
|
append fl [104,101,107]
|
|
append fl [107,110,104]
|
|
append fl [113,114,120]
|
|
append fl [120,119,113]
|
|
append fl [114,115,121]
|
|
append fl [121,120,114]
|
|
append fl [115,118,124]
|
|
append fl [124,121,115]
|
|
append fl [118,117,123]
|
|
append fl [123,124,118]
|
|
append fl [117,116,122]
|
|
append fl [122,123,117]
|
|
append fl [116,113,119]
|
|
append fl [119,122,116]
|
|
append fl [125,126,132]
|
|
append fl [132,131,125]
|
|
append fl [126,127,133]
|
|
append fl [133,132,126]
|
|
append fl [127,130,136]
|
|
append fl [136,133,127]
|
|
append fl [130,129,135]
|
|
append fl [135,136,130]
|
|
append fl [129,128,134]
|
|
append fl [134,135,129]
|
|
append fl [128,125,131]
|
|
append fl [131,134,128]
|
|
append fs 2
|
|
append fs 2
|
|
append fs 4
|
|
append fs 4
|
|
append fs 8
|
|
append fs 8
|
|
append fs 16
|
|
append fs 16
|
|
append fs 32
|
|
append fs 32
|
|
append fs 64
|
|
append fs 64
|
|
append fs 2
|
|
append fs 2
|
|
append fs 4
|
|
append fs 4
|
|
append fs 8
|
|
append fs 8
|
|
append fs 16
|
|
append fs 16
|
|
append fs 32
|
|
append fs 32
|
|
append fs 64
|
|
append fs 64
|
|
append fs 8
|
|
append fs 8
|
|
append fs 8
|
|
append fs 8
|
|
append fs 16
|
|
append fs 16
|
|
append fs 32
|
|
append fs 32
|
|
append fs 32
|
|
append fs 32
|
|
append fs 64
|
|
append fs 64
|
|
append fs 8
|
|
append fs 8
|
|
append fs 8
|
|
append fs 8
|
|
append fs 16
|
|
append fs 16
|
|
append fs 32
|
|
append fs 32
|
|
append fs 32
|
|
append fs 32
|
|
append fs 64
|
|
append fs 64
|
|
append fs 8
|
|
append fs 8
|
|
append fs 8
|
|
append fs 8
|
|
append fs 16
|
|
append fs 16
|
|
append fs 32
|
|
append fs 32
|
|
append fs 32
|
|
append fs 32
|
|
append fs 64
|
|
append fs 64
|
|
append fs 8
|
|
append fs 8
|
|
append fs 8
|
|
append fs 8
|
|
append fs 16
|
|
append fs 16
|
|
append fs 32
|
|
append fs 32
|
|
append fs 32
|
|
append fs 32
|
|
append fs 64
|
|
append fs 64
|
|
append fs 8
|
|
append fs 8
|
|
append fs 8
|
|
append fs 8
|
|
append fs 16
|
|
append fs 16
|
|
append fs 32
|
|
append fs 32
|
|
append fs 32
|
|
append fs 32
|
|
append fs 64
|
|
append fs 64
|
|
append fs 8
|
|
append fs 8
|
|
append fs 8
|
|
append fs 8
|
|
append fs 16
|
|
append fs 16
|
|
append fs 32
|
|
append fs 32
|
|
append fs 32
|
|
append fs 32
|
|
append fs 64
|
|
append fs 64
|
|
append fs 8
|
|
append fs 8
|
|
append fs 8
|
|
append fs 8
|
|
append fs 16
|
|
append fs 16
|
|
append fs 32
|
|
append fs 32
|
|
append fs 32
|
|
append fs 32
|
|
append fs 64
|
|
append fs 64
|
|
append fs 8
|
|
append fs 8
|
|
append fs 8
|
|
append fs 8
|
|
append fs 16
|
|
append fs 16
|
|
append fs 32
|
|
append fs 32
|
|
append fs 32
|
|
append fs 32
|
|
append fs 64
|
|
append fs 64
|
|
append fs 8
|
|
append fs 8
|
|
append fs 8
|
|
append fs 8
|
|
append fs 16
|
|
append fs 16
|
|
append fs 32
|
|
append fs 32
|
|
append fs 32
|
|
append fs 32
|
|
append fs 64
|
|
append fs 64
|
|
append fs 8
|
|
append fs 8
|
|
append fs 8
|
|
append fs 8
|
|
append fs 16
|
|
append fs 16
|
|
append fs 32
|
|
append fs 32
|
|
append fs 32
|
|
append fs 32
|
|
append fs 64
|
|
append fs 64
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
append fe #(true, true, false)
|
|
|
|
setMesh mesh vertices:vp faces:fl
|
|
for i = 1 to 144 do setFaceSmoothGroup mesh i fs[i]
|
|
for i = 1 to 144 do (
|
|
for j = 1 to 3 do (setEdgeVis mesh i j fe[i][j]))
|
|
) -- end on buildmesh
|
|
|
|
tool create prompt:"Click and drag to begin creation process. Hold Ctrl for original object proportions." (
|
|
on mousePoint click do (
|
|
case click of (
|
|
1: nodeTM.translation = gridPoint
|
|
3: #stop
|
|
)
|
|
)
|
|
on mouseMove click do (
|
|
case click of (
|
|
2: (
|
|
if not ctrlKey then (
|
|
width = 0.508038
|
|
length = 0.0825615
|
|
) else (
|
|
old_width = 0.508038
|
|
width = 0.508038
|
|
length = 0.0825615
|
|
height = 3.08818
|
|
)
|
|
)
|
|
3: if not ctrlKey then height = 3.08818
|
|
) -- end on case
|
|
) -- end on mouseMove
|
|
) -- end create tool
|
|
) -- end plugin
|