|
|
@ -121,11 +121,11 @@ class MeshConverter: |
|
|
|
|
|
|
|
|
|
|
|
def finalize(self): |
|
|
|
def finalize(self): |
|
|
|
"""Prepares all baked Plasma geometry to be flushed to the disk""" |
|
|
|
"""Prepares all baked Plasma geometry to be flushed to the disk""" |
|
|
|
print("\nFinalizing Geometry...") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for loc in self._dspans.values(): |
|
|
|
for loc in self._dspans.values(): |
|
|
|
for dspan in loc.values(): |
|
|
|
for dspan in loc.values(): |
|
|
|
print(" ... {} ...".format(dspan.key.name)) |
|
|
|
print("\n[DrawableSpans '{}']".format(dspan.key.name)) |
|
|
|
|
|
|
|
print(" Composing geometry data") |
|
|
|
|
|
|
|
|
|
|
|
# This mega-function does a lot: |
|
|
|
# This mega-function does a lot: |
|
|
|
# 1. Converts SourceSpans (geospans) to Icicles and bakes geometry into plGBuffers |
|
|
|
# 1. Converts SourceSpans (geospans) to Icicles and bakes geometry into plGBuffers |
|
|
@ -134,6 +134,10 @@ class MeshConverter: |
|
|
|
# 4. Clears the SourceSpans |
|
|
|
# 4. Clears the SourceSpans |
|
|
|
dspan.composeGeometry(True, True) |
|
|
|
dspan.composeGeometry(True, True) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Might as well say something else just to fascinate anyone who is playing along |
|
|
|
|
|
|
|
# at home (and actually enjoys reading these lawgs) |
|
|
|
|
|
|
|
print(" Bounds and SpaceTree in the saddle") |
|
|
|
|
|
|
|
|
|
|
|
def _export_geometry(self, mesh, geospans): |
|
|
|
def _export_geometry(self, mesh, geospans): |
|
|
|
_geodatacls = type("_GeoData", |
|
|
|
_geodatacls = type("_GeoData", |
|
|
|
(object,), |
|
|
|
(object,), |
|
|
|