Skip to main content
In TD, finite elements can be created directly by attaching them to existing nodes, but the preferred approach is to use an FE Mesh Importer. OpenTD allows you to use either method. Creating a finite element mesh using the FEMeshImporter class is demonstrated in the following program:
If you create a mesh using the FEMeshImporter class (the preferred approach), it is important to note that the FEMesh definition provided during creation is only used at that time. After creation, the client-side FEMesh object is not connected to the TD model and if you want to edit the mesh, you will have to get the editable objects to modify. This is discussed in section Query and edit finite elements.