DEV Community

GeoGenius
GeoGenius

Posted on

From GLB to Tank Farm Twin: Structuring GenAnywhere Output for Storage Terminals

Tank farm digital twins fail in the same quiet way as every other industrial twin: the data layer is over-specified and the ground layer is missing. You can have every level transmitter, every valve state and every inspection record, and still be looking at a viewport of tags floating over an empty plane.

The expensive piece is the site scene. This post treats it as a pipeline input with a real contract, using GenAnywhere's GLB export as stage one.

What the upstream tool promises

GenAnywhere is a browser-based AI reconstruction platform from Hangzhou Duosuan Technology. You frame an area on a map, the model parses satellite imagery, and it returns a textured mesh scene with buildings, terrain, vegetation and water as separable layers, plus recognizable infrastructure masses — storage tanks, pipe racks, pump houses, loading gantries and flare stacks.

Three properties matter to an integration engineer.

Layering. Terrain, tanks, buildings, vegetation and water arrive as separable content, so a tablet viewer can drop trees and pipe runs while a workstation keeps them.

Concept accuracy, explicitly. Heights and diameters are estimates, adjacent tanks can merge, bund walls may flatten into the ground, and the imagery carries a capture date older than the site. That error budget has to travel with the asset, because a tank farm is exactly where somebody will try to compute a containment volume from a render.

A GLB contract. One file, glTF semantics, importable into Unreal, Unity, Blender, Revit, Rhino, SketchUp or ArcGIS Pro without a proprietary step.

Pipeline shape

map frame -> reconstructed scene -> GLB export
        -> normalize (headless Blender / gltf-transform)
        -> LOD + collision + instancing
        -> engine import (Unreal Datasmith or glTF)
        -> semantic tagging (tank, bund, pipe corridor, loading bay)
        -> terminal twin runtime
Enter fullscreen mode Exit fullscreen mode

Keep the exported GLB immutable. Everything downstream should be reproducible from that file plus a config, or you cannot tell whether a bad frame comes from the source scene or from your processing.

Stage 1: normalize before the engine

Engines forgive a lot and never forgive units or origins.

Confirm axis convention. glTF is Y-up; Unreal is Z-up. A naive import produces a tank farm lying on its side, which is funny exactly once.

Fix the origin deliberately. Terminals are usually authored in a local plant grid tied to a surveyed benchmark, while reconstruction arrives in geographic coordinates. Pick one convention, record it, and apply it in the normalize pass rather than nudging objects in the editor afterwards.

Decimate terrain, not the tanks. A tank farm is mostly ground and pipe; terrain dominates triangle count, while tank shells and bunds carry the meaning. For a 4 km² terminal, a terrain budget of 100k–200k triangles at a 2 m grid is a reasonable LOD0.

Split static from semantic. Bunds, buildings and terrain are static. Tanks should resolve into individual named nodes so the runtime can bind a tank ID from the asset register to a specific object.

import bpy

bpy.ops.import_scene.gltf(filepath="terminal.glb")

for obj in bpy.data.objects:
    if obj.type == "MESH":
        if "terrain" in obj.name.lower():
            mod = obj.modifiers.new("decimate", "DECIMATE")
            mod.ratio = 0.35
        obj["source"] = "genanywhere"
        obj["imagery_window"] = "2025-Q1"
Enter fullscreen mode Exit fullscreen mode

The custom property is not decoration. Anything that renders a spacing study downstream should be able to read when the ground was last true.

Stage 2: LOD, collision and instancing

Three LODs are usually enough: full mesh for hero views, decimated terrain for site-wide flight, low-poly proxy for the web viewer used by operations and training. Collision matters for the walkthrough mode used in induction and emergency drills — you want to stop at the bund wall, not walk through it.

Instancing is unusually valuable here. A terminal is a repetition problem: one tank asset, one pump house, one lighting mast, one loading arm, repeated dozens of times. Instancing a single tank model at reconstructed positions, then overriding diameter and height per instance from the asset register, is both cheaper and more correct than dozens of baked meshes. It also lets you swap a dome-roof tank for a floating-roof tank without rebuilding the scene.

Stage 3: semantic tagging

A scene is not a twin until objects mean something. Minimum viable tagging for a storage terminal:

| Node class | Tag | Why it exists |

| Tanks | tank_id, product, diameter_m, height_m | Binds level, inspection and work-order data |

| Bunds | bund_id, capacity_m3, crest_level | Secondary containment queries |

| Pipe corridors | corridor_id, service | Maintenance and isolation routing |

| Loading bays | bay_id, mode | Truck and rail scheduling |

| Pump houses | house_id | Equipment bindings |

| Boundary | site_boundary | Access control and spatial queries |

Do this in the import script, not by hand. Manual tagging is skipped the next time the scene is regenerated.

Stage 4: cheap automated validation

Three checks, run per regeneration.

Scale check. Measure a known span — the centre-to-centre distance between two tanks, or the bund length — and compare against the as-built plot plan. A 5 percent error is tolerable for visualization and fatal for anything that derives a separation distance from it.

Vertical check. Compare terrain elevation at the bund crest or the pump house against a surveyed level. Satellite-derived relief is adequate for screening, not for settlement or drainage design.

Completeness check. Count tanks against the asset register. Missing or duplicated tanks are the most common reconstruction error on a farm with tree cover or heavy pipe clutter.

Stage 5: what the twin can then do

Once the scene is normalized and tagged, the twin gains capabilities that used to be separate products: fly to a tank with an open inspection order and see the access route and the bund; overlay product levels on the actual shells; run an emergency drill walkthrough from the control building to the far bund; visualize separation distances as parametric geometry rather than as annotation; attach work permits to specific objects in the scene.

None of that needs survey-grade ground. It needs a coherent, correctly scaled, correctly labelled scene — exactly the class of asset a generative reconstruction produces.

The honest boundary

Do not let a terminal twin drift into process-safety truth. Containment volumes, separation distances, foam application rates, vapour dispersion and risk contours belong to engineering calculations and the applicable standards, not to a reconstructed mesh. Shell thickness and foundation settlement belong to inspection and geotechnics. The reconstruction is concept-level geometry with an explicit error budget, and the pipeline should carry that budget as metadata.

Treat the GLB as a first-class input, normalize it once, tag it semantically, and the expensive part of your terminal twin stops being the part nobody wanted to budget for.

Top comments (0)