diff options
| author | root <root@dc13.lemmi> | 2020-07-21 10:00:46 +0200 |
|---|---|---|
| committer | root <root@dc13.lemmi> | 2020-07-21 10:00:46 +0200 |
| commit | 1192c4575ea7afdf38e3fa0df4587a08620af11e (patch) | |
| tree | 6910a62487c282d0840d2e668aa7eb40b7c8a3fd /project/text-files/kcl.inc | |
| parent | 76de8a89f7c1d1b4522eb66e8f89d248e8c1781f (diff) | |
SZS v2.18a
Diffstat (limited to 'project/text-files/kcl.inc')
| -rw-r--r-- | project/text-files/kcl.inc/kcl-dump-head-cr.inc | 40 | ||||
| -rw-r--r-- | project/text-files/kcl.inc/kcl-dump-octlist-cr.inc | 2 | ||||
| -rw-r--r-- | project/text-files/kcl.inc/kcl-dump-octree-cr.inc | 6 | ||||
| -rw-r--r-- | project/text-files/kcl.inc/kcl-dump-tridata-cr.inc | 15 | ||||
| -rw-r--r-- | project/text-files/kcl.inc/kcl-flag-template-cr.inc | 48 | ||||
| -rw-r--r-- | project/text-files/kcl.inc/kcl-head-cr.inc | 18 |
6 files changed, 129 insertions, 0 deletions
diff --git a/project/text-files/kcl.inc/kcl-dump-head-cr.inc b/project/text-files/kcl.inc/kcl-dump-head-cr.inc new file mode 100644 index 0000000..5a48c68 --- /dev/null +++ b/project/text-files/kcl.inc/kcl-dump-head-cr.inc @@ -0,0 +1,40 @@ + +S.verticies =%8u +S.normals =%8u +S.triangles =%8u, %u unused, %u fixed, %u invalid +S.octree_size =%8u +S.total_size =%8u + +H.unknown_0x10 = %11.3f +H.unknown_0x38 = %11.3f + +H.min_octree = %11.3f %11.3f %11.3f # minimum coord for octree entrance +S.min_point = %11.3f %11.3f %11.3f # minimum coord of all points +S.mean_point = %11.3f %11.3f %11.3f # arithmetic mean of all points +S.max_point = %11.3f %11.3f %11.3f # maximum coord of all points +S.max_octree = %11.3f %11.3f %11.3f # maximum coord for octree entrance + +H.mask = 0x%08x 0x%08x 0x%08x # masks (header) +H.shifts = %8u> %8u< %8u< # header shift values +S.null_bits = %8u %8u %8u # number of low 0 bits +S.bcube_bits = %8u %8u %8u # number of base cube bits +S.n_bcubes = %8u %8u %8u # number of base cubes + +S.min_distance = %14.6f # minimum distance between points of a triangle +S.max_distance = %11.3f # maximum distance between points of a triangle + +S.bcube_width = %8u # width of a single base cube = 2^rshift +S.max_cube_width = %8u # maximum width of a cube with triangles +S.min_cube_width = %8u # minimum width of a cube with triangles +~S.blow_size = %8u # suggestion: what KCL_BLOW value was used +S.n_base_cubes = %8u # number of base cubes +S.n_cube_nodes = %8u # number of cube nodes (each with 8 cube links) +S.total_cubes = %8u # total number of cubes +S.max_depth = %8u # maximum octree depth +S.ave_depth = %11.2f # average octree depth + +S.n_null_lists = %8u # number of triangle lists with 0 triangles +S.n_tri_lists = %8u # number of triangle lists with >0 triangles +S.n_null_links = %8u # number of triangle links to lists with 0 triangles +S.n_tri_links = %8u # number of triangle links to lists with >0 triangles + diff --git a/project/text-files/kcl.inc/kcl-dump-octlist-cr.inc b/project/text-files/kcl.inc/kcl-dump-octlist-cr.inc new file mode 100644 index 0000000..eab8bf7 --- /dev/null +++ b/project/text-files/kcl.inc/kcl-dump-octlist-cr.inc @@ -0,0 +1,2 @@ + +#L# diff --git a/project/text-files/kcl.inc/kcl-dump-octree-cr.inc b/project/text-files/kcl.inc/kcl-dump-octree-cr.inc new file mode 100644 index 0000000..daff0ce --- /dev/null +++ b/project/text-files/kcl.inc/kcl-dump-octree-cr.inc @@ -0,0 +1,6 @@ + +# +############################################################################### +# Octree dump: %u base cubes + %u normal cubes, %u triangle lists + +#O# diff --git a/project/text-files/kcl.inc/kcl-dump-tridata-cr.inc b/project/text-files/kcl.inc/kcl-dump-tridata-cr.inc new file mode 100644 index 0000000..d15fd47 --- /dev/null +++ b/project/text-files/kcl.inc/kcl-dump-tridata-cr.inc @@ -0,0 +1,15 @@ +# List of %u triangles + +#D# +#-----------------------------------------+---------------------------------- +# N0 _______ x,y,z of normal #0 _______ | flags (income -> current) +# N1 _______ x,y,z of normal #1 _______ | status +# N2 _______ x,y,z of normal #2 _______ | 'valid', 'used' +# N3 _______ x,y,z of normal #3 _______ | +# P1 _______ x,y,z of point #1 ________ | length +# P2 _______ x,y,z of point #2 ________ | difference: point2 - point1 +# P3 _______ x,y,z of point #3 ________ | difference: point3 - point1 +# LEN _______ 3x side length2 __________ | area of triangle +# HT _______ 3x height ________________ | min and max height +#-----------------------------------------+---------------------------------- + diff --git a/project/text-files/kcl.inc/kcl-flag-template-cr.inc b/project/text-files/kcl.inc/kcl-flag-template-cr.inc new file mode 100644 index 0000000..8394619 --- /dev/null +++ b/project/text-files/kcl.inc/kcl-flag-template-cr.inc @@ -0,0 +1,48 @@ + +############################################################################## +##### All behind a '#' on the same line is a comment and ignored. ##### +##### See https://szs.wiimm.de/doc/kcl/flagfile for more details. ##### +############################################################################## +# function f() + +# First, we define a flag function named f(). +# This allows us to define type and variant as 2 values. + +@function f # (type,variant) + @return $1 & 0x1f | $2 << 5 +@endfunction + +############################################################################## +# function a() + +# Here we define function a() to support the flag variant type A. +# For details see http://wiimm.de/r/ctw/KCL_flag + +@function a # (type,w,x,y,z) + @return $1 & 0x1f # type (5 bits) + > | ( $2 & 7 ) << 13 # W (3 bits) + > | ( $3 & 3 ) << 11 # X (2 bits) + > | ( $4 & 7 ) << 8 # Y (3 bits) + > | ( $5 & 7 ) << 5 # Z (3 bits) +@endfunction + +############################################################################## +# function i() + +# The function i() supports fall boundaries. + +@function i # (type,z,index) + @return $1 & 0x1f # type (5 bits) + > | ( $2 & 7 ) << 5 # Z (3 bits) + > | ( $3 & 0xff ) << 8 # index (8 bits) +@endfunction + +############################################################################## +# table + +#----------------------------------------------------------------------------- +# group_name = flag_or_expression +# = f(type,variant) +# = a(type,w,x,y,z) +# = i(type,z,index) +#----------------------------------------------------------------------------- diff --git a/project/text-files/kcl.inc/kcl-head-cr.inc b/project/text-files/kcl.inc/kcl-head-cr.inc new file mode 100644 index 0000000..1dfe947 --- /dev/null +++ b/project/text-files/kcl.inc/kcl-head-cr.inc @@ -0,0 +1,18 @@ +#KCL : Wavefront OBJ File + +## Created by 'Wiimms SZS Tools' - https://szs.wiimm.de/ +#@ TOOL = %s +#@ SYSTEM = %s +#@ VERSION = %s +#@ REVISION = %u +#@ DATE = %s +#@ MODE = %s + + +# Statistics: +# +# %8u vertices +# %8u normals +# %8u triangles +# %8u groups +# |
