### PointCloudFileLoader Constructor Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/converter/loader/PointCloudFileLoader.html Initializes a new instance of the PointCloudFileLoader class. No specific setup is required. ```java public PointCloudFileLoader() ``` -------------------------------- ### GaiaSegment Constructor Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/basic/geometry/entities/GaiaSegment.html Initializes a new GaiaSegment with a start and end point. ```APIDOC ## GaiaSegment Constructor ### Description Constructs a GaiaSegment object with specified start and end points. ### Method `public GaiaSegment(org.joml.Vector3d startPoint, org.joml.Vector3d endPoint)` ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example None ### Response #### Success Response (200) None #### Response Example None ``` -------------------------------- ### HalfEdgeScene.getGaiaBoundingBox Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/basic/halfedge/HalfEdgeScene.html Gets the bounding box of the scene. ```APIDOC ## GET /gaia3d/mago-3d-tiler/HalfEdgeScene/getGaiaBoundingBox ### Description Gets the bounding box of the scene. ### Method GET ### Endpoint /gaia3d/mago-3d-tiler/HalfEdgeScene/getGaiaBoundingBox ### Parameters N/A ### Request Body N/A ### Response #### Success Response (200) - **GaiaBoundingBox** (GaiaBoundingBox) - The bounding box of the scene. ### Request Example N/A ### Response Example ```json { "minX": 0.0, "minY": 0.0, "minZ": 0.0, "maxX": 100.0, "maxY": 100.0, "maxZ": 100.0 } ``` ``` -------------------------------- ### Display Help Information Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/README.md Use the --help flag to display all available commands and their descriptions. This is useful for understanding the tool's capabilities and options. ```bash java -jar mago-3d-tiler.jar --help ``` -------------------------------- ### getTrianglesCount Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/basic/halfedge/HalfEdgeMesh.html Gets the total number of triangles. ```APIDOC ## GET /gaia3d/mago-3d-tiler/getTrianglesCount ### Description Gets the total number of triangles. ### Method GET ### Endpoint /gaia3d/mago-3d-tiler/getTrianglesCount ### Response #### Success Response (200) - **int** - The total count of triangles. ``` -------------------------------- ### Run Tiling Process Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/process/tileprocess/tile/Batched3DModelTiler.html Initiates the tiling process with a list of tile information. ```APIDOC ## POST /gaia3d/mago-3d-tiler/run ### Description Processes a list of tile information to generate a tileset. ### Method POST ### Endpoint /gaia3d/mago-3d-tiler/run ### Parameters #### Request Body - **tileInfos** (List) - Required - A list of TileInfo objects to process. ``` -------------------------------- ### Get Name Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/ExtensionModuleFrame.html Retrieves the name of the object. ```APIDOC ## getName ### Description Retrieves the name of the object. ### Method GET ### Endpoint /gaia3d/mago-3d-tiler/name (Assumed) ### Response #### Success Response (200) - **name** (String) - The name of the object. #### Response Example ```json { "name": "Mago3DTiler" } ``` ``` -------------------------------- ### run Method Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/process/tileprocess/tile/Instanced3DModelTiler.html Executes the tiling process for a given list of tile information. ```APIDOC ## run Method ### Description Executes the tiling process for a given list of tile information. This method is specified by the TilingProcess interface. ### Method `public Tileset run(List tileInfos)` ### Endpoint N/A (Method) ``` -------------------------------- ### getMaxWidth Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/renderer/engine/TextureAtlasManager.html Gets the maximum width from a list of images. ```APIDOC ## getMaxWidth ### Description Gets the maximum width from a list of images. ### Method int ### Endpoint N/A ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body - **compareImages** (List) - Required - A list of texture atlas data to compare. ### Request Example ```json { "compareImages": [ { "textureData": "...", "width": 1024, "height": 1024 } ] } ``` ### Response #### Success Response (200) - **maxWidth** (int) - The maximum width found in the list. #### Response Example ```json { "maxWidth": 1024 } ``` ``` -------------------------------- ### Initialization Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/renderer/engine/Engine.html Initializes the tiler system. ```APIDOC ## POST /gaia3d/mago-3d-tiler/init ### Description Initializes the Mago 3D Tiler system. ### Method POST ### Endpoint /gaia3d/mago-3d-tiler/init ### Parameters No parameters required. ``` -------------------------------- ### getMaxHeight Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/renderer/engine/TextureAtlasManager.html Gets the maximum height from a list of images. ```APIDOC ## getMaxHeight ### Description Gets the maximum height from a list of images. ### Method int ### Endpoint N/A ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body - **compareImages** (List) - Required - A list of texture atlas data to compare. ### Request Example ```json { "compareImages": [ { "textureData": "...", "width": 1024, "height": 1024 } ] } ``` ### Response #### Success Response (200) - **maxHeight** (int) - The maximum height found in the list. #### Response Example ```json { "maxHeight": 1024 } ``` ``` -------------------------------- ### init Method Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/renderer/engine/EngineVoxelizer.html Initializes the EngineVoxelizer and its associated rendering components. ```APIDOC ## init Method ### Description Initializes the EngineVoxelizer, setting up necessary rendering resources and components. ### Method `void init()` ### Endpoint None ### Parameters None ### Request Example None ### Response None ``` -------------------------------- ### Execute mago-3d-tiler with Java (Short Options) Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/MANUAL.md Run mago-3d-tiler directly using its JAR file with short command-line options for input and output paths. Requires JDK 21 or higher. ```bash java -jar mago-3d-tiler.jar -i "/data/input/sample" -o "/data/output/sample" ``` -------------------------------- ### getIndexAtDepth Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/basic/geometry/octree/GaiaOctreeCoordinate.html Gets the index of the current node at its depth. ```APIDOC ## getIndexAtDepth ### Description Gets the index of the current node at its depth. ### Method `public int getIndexAtDepth()` ### Endpoint N/A (Method) ``` -------------------------------- ### Initialize Application Logic Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/renderer/MainRenderer.html Initializes the application logic with the provided window and scene container. ```APIDOC ## init ### Description Initializes the application logic, setting up necessary components with the provided window and scene container. ### Method void ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body - **window** (Window) - Required - The application window. - **gaiaScenesContainer** (GaiaScenesContainer) - Required - The container for Gaia scenes. ``` -------------------------------- ### Get Faces Count Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/basic/model/GaiaMesh.html Retrieves the total count of faces. ```APIDOC ## getFacesCount /gaia3d/mago-3d-tiler ### Description Returns the total number of faces currently processed. ### Method GET ### Endpoint /gaia3d/mago-3d-tiler/getFacesCount ### Response #### Success Response (200) - **int** - The total count of faces. #### Response Example ```json { "count": 1500 } ``` ``` -------------------------------- ### Get Root Node Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/basic/model/GaiaScene.html Retrieves the root node of the scene. ```APIDOC ## getRootNode ### Description Retrieves the root node of the scene. ### Method public GaiaNode getRootNode() ### Endpoint None ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example None ### Response #### Success Response (200) - **GaiaNode** (GaiaNode) - The root node of the scene. #### Response Example None ``` -------------------------------- ### Initialization API Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/renderer/engine/Engine.html Initializes the rendering engine. ```APIDOC ## POST /init ### Description Initializes the rendering engine and its components. ### Method POST ### Endpoint /init ``` -------------------------------- ### Initialize Tiler Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/renderer/engine/EngineVoxelizer.html Initializes the Mago 3D Tiler engine. ```APIDOC ## POST /gaia3d/mago-3d-tiler/init ### Description Initializes the Mago 3D Tiler engine. ### Method POST ### Endpoint /gaia3d/mago-3d-tiler/init ``` -------------------------------- ### getMaxIndexAtDepth Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/basic/geometry/octree/GaiaOctreeCoordinate.html Gets the maximum possible index at the current depth. ```APIDOC ## getMaxIndexAtDepth ### Description Gets the maximum possible index at the current depth. ### Method `public int getMaxIndexAtDepth()` ### Endpoint N/A (Method) ``` -------------------------------- ### Run mago-3d-tiler with Docker Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/MANUAL.md Execute mago-3d-tiler using Docker, specifying input and output paths via a workspace volume. ```bash docker run --rm -v "/workspace:/workspace" gaia3d/mago-3d-tiler -input /workspace/3ds-samples -output /workspace/sample-3d-tiles -inputType 3ds -crs 5186 ``` -------------------------------- ### Camera Methods Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/index-all.html Methods related to camera setup and configuration. ```APIDOC ## setUp /api/camera/setup ### Description Sets the up vector for the camera. ### Method POST ### Endpoint /api/camera/setup ### Parameters #### Request Body - **upVector** (Vector3d) - Required - The 3D vector representing the camera's up direction. ### Response #### Success Response (200) - **status** (String) - Indicates success. #### Response Example ```json { "status": "success" } ``` ``` -------------------------------- ### Pipe Method Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/index-all.html Method for retrieving pipe start position. ```APIDOC ## Pipe Method ### Description Retrieves the starting position of a pipe. ### Method `getStartLinkPosition()`: Returns the starting position of the pipe. ### Class `com.gaia3d.basic.pipe.Pipe` ``` -------------------------------- ### GaiaPointCloudTemp Constructor Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/basic/pointcloud/GaiaPointCloudTemp.html Initializes a new instance of the GaiaPointCloudTemp class with the specified file. ```APIDOC ## GaiaPointCloudTemp Constructor ### Description Initializes a new instance of the GaiaPointCloudTemp class. ### Method `GaiaPointCloudTemp(File file)` ### Parameters #### Path Parameters - **file** (File) - Required - The file to be used for point cloud data. ``` -------------------------------- ### GaiaPrimitive Method Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/index-all.html Method for getting texture coordinate bounding rectangle. ```APIDOC ## GaiaPrimitive Method ### Description Calculates the bounding rectangle for texture coordinates. ### Method `getTexcoordBoundingRectangle(GaiaRectangle rectangle)`: Sets the provided GaiaRectangle to the bounding rectangle of the texture coordinates. ### Class `com.gaia3d.basic.model.GaiaPrimitive` ``` -------------------------------- ### RenderEngine Constructor Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/renderer/engine/graph/RenderEngine.html Initializes a new instance of the RenderEngine class. ```APIDOC ## RenderEngine Constructor ### Description Initializes a new instance of the RenderEngine class. ### Method `RenderEngine()` ### Endpoint N/A (Constructor) ``` -------------------------------- ### Engine Constructor Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/renderer/engine/Engine.html Initializes the Engine with a window title, options, and application logic. ```java public Engine([String](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/String.html "class or interface in java.lang") windowTitle, [Window.WindowOptions](Window.WindowOptions.html "class in com.gaia3d.renderer.engine") opts, [IAppLogic](IAppLogic.html "interface in com.gaia3d.renderer.engine") appLogic) ``` -------------------------------- ### FaceVisibilityDataManager Methods Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/index-all.html Methods for FaceVisibilityDataManager to get camera direction types. ```APIDOC ## GET /api/faceVisibilityDataManager/bestCameraDirectionTypeOfFace ### Description Gets the best camera direction type for a given face index. ### Method GET ### Endpoint /api/faceVisibilityDataManager/bestCameraDirectionTypeOfFace ### Query Parameters - **faceIndex** (int) - Required - The index of the face. ### Response #### Success Response (200) - **directionType** (string) - The best camera direction type. #### Response Example { "directionType": "TOP" } ``` -------------------------------- ### Execute mago-3d-tiler with Java (Long Options) Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/MANUAL.md Run mago-3d-tiler directly using its JAR file with long command-line options for input and output paths. Requires JDK 21 or higher. ```bash java -jar mago-3d-tiler.jar --input "/data/input/sample" --output "/data/output/sample" ``` -------------------------------- ### Get Shader Program Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/renderer/engine/graph/ShaderManager.html Retrieves a specific shader program by its name. ```APIDOC ## GET /gaia3d/mago-3d-tiler/shaderPrograms/{shaderProgramName} ### Description Retrieves a shader program by its name. ### Method GET ### Endpoint /gaia3d/mago-3d-tiler/shaderPrograms/{shaderProgramName} ### Parameters #### Path Parameters - **shaderProgramName** (String) - Required - The name of the shader program to retrieve. ### Response #### Success Response (200) - **ShaderProgram** (ShaderProgram) - The requested shader program object. #### Response Example ```json { "shaderProgramName": "myShaderProgram", "shaderModuleDataList": [ { "type": "VERTEX", "source": "attribute vec4 position; void main() { gl_Position = position; }" }, { "type": "FRAGMENT", "source": "void main() { gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0); }" } ] } ``` ``` -------------------------------- ### GaiaLasPoint Position Methods Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/converter/pointcloud/GaiaLasPoint.html Methods for getting the 3D position of a GaiaLasPoint. ```APIDOC ## GET /gaia3d/mago-3d-tiler/GaiaLasPoint/getVec3Position ### Description Retrieves the 3D position of the GaiaLasPoint. ### Method GET ### Endpoint /gaia3d/mago-3d-tiler/GaiaLasPoint/getVec3Position ### Response #### Success Response (200) - **position** (Vector3d) - The 3D coordinates of the point. ``` -------------------------------- ### TreeInstanceTiler.run() Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/process/tileprocess/tile/TreeInstanceTiler.html Executes the tiling process for a given list of tile information. ```APIDOC ## POST /gaia3d/mago-3d-tiler/TreeInstanceTiler/run ### Description Executes the tiling process for a given list of tile information. This method is part of the TilingProcess interface. ### Method POST ### Endpoint `/gaia3d/mago-3d-tiler/TreeInstanceTiler/run` ### Parameters #### Request Body - **tileInfos** (List) - Required - A list of TileInfo objects to process. ### Request Example ```json { "tileInfos": [ { "tileId": "tile1", "data": "..." }, { "tileId": "tile2", "data": "..." } ] } ``` ### Response #### Success Response (200) - **Tileset** (Tileset) - The generated tileset object. #### Response Example ```json { "root": { "children": [], "content": { "uri": "root.b3dm" } } } ``` ``` -------------------------------- ### Triangle Count API Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/basic/halfedge/HalfEdgeSurface.html API for getting the total count of triangles. ```APIDOC ## GET /api/triangles/getTrianglesCount ### Description Retrieves the total number of triangles. ### Method GET ### Endpoint /api/triangles/getTrianglesCount ### Request Example (No request body) ### Response #### Success Response (200) - **count** (int) - The total number of triangles. #### Response Example ```json { "count": 1000 } ``` ``` -------------------------------- ### Engine Constructor Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/renderer/engine/Engine.html Initializes the Mago 3D Tiler engine with specified window title, options, and application logic. ```APIDOC ## Engine Constructor ### Description Initializes the Mago 3D Tiler engine. ### Method Constructor ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```java Engine engine = new Engine("Mago 3D Tiler", windowOptions, appLogic); ``` ### Response None ``` -------------------------------- ### Get Welded Faces Groups Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/basic/halfedge/HalfEdgeSurface.html Retrieves groups of welded HalfEdgeFaces. ```APIDOC ## GET /api/tiler/weldedFacesGroups ### Description Retrieves a list of groups, where each group contains HalfEdgeFaces that are considered welded together. ### Method GET ### Endpoint /api/tiler/weldedFacesGroups ### Parameters #### Query Parameters - **resultWeldedFacesGroups** (List>) - Required - The list to store the groups of welded faces. ### Response #### Success Response (200) - **resultWeldedFacesGroups** (List>) - A list where each element is a list of HalfEdgeFaces representing a welded group. #### Response Example ```json { "resultWeldedFacesGroups": [ [ { "id": 1, "vertices": ["v1", "v2", "v3"] }, { "id": 2, "vertices": ["v3", "v4", "v1"] } ] ] } ``` ``` -------------------------------- ### RenderableGaiaScene Constructor Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/renderer/renderable/RenderableGaiaScene.html Initializes a new instance of the RenderableGaiaScene class. ```APIDOC ## RenderableGaiaScene Constructor ### Description Initializes a new instance of the RenderableGaiaScene class. ### Method `RenderableGaiaScene()` ### Endpoint N/A (Constructor) ### Parameters None ### Request Example N/A ### Response N/A ``` -------------------------------- ### TilerExtensionModule Constructor Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/TilerExtensionModule.html Initializes a new instance of the TilerExtensionModule. ```APIDOC ## TilerExtensionModule Constructor ### Description Initializes a new instance of the TilerExtensionModule. ### Method `public TilerExtensionModule()` ### Endpoint N/A (Constructor) ``` -------------------------------- ### Get Triangles Count Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/basic/halfedge/HalfEdgeSurface.html Returns the total number of triangles in the mesh. ```APIDOC ## GET /api/tiler/trianglesCount ### Description Returns the total count of triangles present in the mesh. ### Method GET ### Endpoint /api/tiler/trianglesCount ### Response #### Success Response (200) - **count** (int) - The total number of triangles. #### Response Example ```json { "count": 1500 } ``` ``` -------------------------------- ### Get Faces Count Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/basic/model/GaiaScene.html Retrieves the total count of faces in the scene. ```APIDOC ## getFacesCount ### Description Retrieves the total count of faces in the scene. ### Method public int getFacesCount() ### Endpoint None ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example None ### Response #### Success Response (200) - **int** - The total number of faces in the scene. #### Response Example None ``` -------------------------------- ### GlobalOptions Initialization Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/index-all.html Methods for initializing global options, including command-line parsing. ```APIDOC ## init(CommandLine) /GlobalOptions ### Description Initializes global options using a CommandLine object. ### Method Static ### Endpoint com.gaia3d.command.mago.GlobalOptions ### Parameters #### Path Parameters - **CommandLine** (org.apache.commons.cli.CommandLine) - Required - The command line arguments. ### Response None ``` -------------------------------- ### Get Faces Count Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/basic/model/GaiaPrimitive.html Retrieves the total number of faces in the mesh. ```APIDOC ## getFacesCount ### Description Returns the total count of faces in the mesh. ### Method N/A (Java method) ### Endpoint N/A ### Parameters N/A ### Request Example N/A ### Response #### Success Response (200) - **int** (int) - The number of faces. #### Response Example N/A ``` -------------------------------- ### Constructor Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/renderer/MainRenderer.html Details of the MainRenderer constructor. ```APIDOC ## MainRenderer ### Description Constructor for the MainRenderer class. ### Method Constructor ### Endpoint Not applicable (Java constructor) ### Parameters None ### Request Example None ### Response None ### Response Example None ``` -------------------------------- ### Get Vertices Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/basic/geometry/GaiaBoundingBox.html Retrieves a list of all vertices that define the bounding box. ```APIDOC ## getVertices ### Description Retrieves a list of all vertices that constitute the bounding box. ### Method List ### Endpoint N/A (Method within a class) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example None ### Response #### Success Response (200) - **List** (List) - A list containing the Vector3d objects representing the vertices. #### Response Example None ``` -------------------------------- ### GaiaSceneTemp Static Methods Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/basic/temp/GaiaSceneTemp.html Documentation for static methods used to convert between GaiaScene and GaiaSceneTemp. ```APIDOC ## Static Methods ### Method: from #### Description Converts a `GaiaScene` object to a `GaiaSceneTemp` object. #### Method `public static GaiaSceneTemp from(GaiaScene gaiaScene)` #### Parameters - **gaiaScene** (GaiaScene) - The GaiaScene object to convert. ### Method: to #### Description Converts a `GaiaSceneTemp` object to a `GaiaScene` object. #### Method `public static GaiaScene to(GaiaSceneTemp gaiaSceneTemp)` #### Parameters - **gaiaSceneTemp** (GaiaSceneTemp) - The GaiaSceneTemp object to convert. ``` -------------------------------- ### Get Barycenter Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/basic/geometry/entities/GaiaTriangle.html Retrieves the barycenter (center of mass) of the 3D model. ```APIDOC ## GET /gaia3d/mago-3d-tiler/barycenter ### Description Retrieves the barycenter (center of mass) of the 3D model. ### Method GET ### Endpoint /gaia3d/mago-3d-tiler/barycenter ### Response #### Success Response (200) - **barycenter** (org.joml.Vector3d) - The barycenter coordinates. ``` -------------------------------- ### InstancedModelGltfWriter Constructors Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/converter/gltf/tiles/InstancedModelGltfWriter.html Provides information on how to instantiate the InstancedModelGltfWriter. ```APIDOC ## InstancedModelGltfWriter Constructors ### Description Constructors for the InstancedModelGltfWriter class. ### Constructor `InstancedModelGltfWriter()` ### Description Default constructor for InstancedModelGltfWriter. ### Constructor `InstancedModelGltfWriter(GltfWriterOptions gltfOptions)` ### Description Constructor for InstancedModelGltfWriter with specified GltfWriterOptions. ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example None ### Response #### Success Response (200) None #### Response Example None ``` -------------------------------- ### GaiaSet Constructor and Factory Methods Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/basic/exchangable/GaiaSet.html Provides documentation for creating GaiaSet instances, including the default constructor and factory methods for loading data from GaiaScene or files. ```APIDOC ## GaiaSet Constructor ### Description Creates a new instance of GaiaSet. ### Method public ### Endpoint N/A ### Parameters None ### Request Example ```java GaiaSet gaiaSet = new GaiaSet(); ``` ### Response None ``` ```APIDOC ## fromGaiaScene ### Description Creates a GaiaSet instance from a GaiaScene object. ### Method public static ### Endpoint N/A ### Parameters - **gaiaScene** (GaiaScene) - The GaiaScene object to convert. ### Request Example ```java GaiaScene scene = ...; GaiaSet gaiaSet = GaiaSet.fromGaiaScene(scene); ``` ### Response - **GaiaSet** - A new GaiaSet instance populated with data from the GaiaScene. ``` ```APIDOC ## readFile ### Description Reads GaiaSet data from a specified file path. ### Method public static ### Endpoint N/A ### Parameters - **path** (Path) - The path to the file to read. ### Throws - **FileNotFoundException** - If the specified file does not exist. ### Request Example ```java Path filePath = Paths.get("path/to/your/file.ext"); GaiaSet gaiaSet = GaiaSet.readFile(filePath); ``` ### Response - **GaiaSet** - A GaiaSet instance loaded with data from the file. ``` -------------------------------- ### GaiaPrimitiveUtils Constructor Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/util/GaiaPrimitiveUtils.html Default constructor for GaiaPrimitiveUtils. No specific setup is required. ```java public GaiaPrimitiveUtils() ``` -------------------------------- ### Run mago 3DTiler using JAR File Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/README.md Execute the mago 3DTiler JAR file with input and output directories. Requires Java 21 or above. ```bash java -jar mago-3d-tiler-x.x.x.jar -input C:\data\kml-input-dir -output C:\data\kml-output-dir ``` -------------------------------- ### setItselfAsOutingHalfEdgeToTheStartVertex Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/basic/halfedge/HalfEdgeSurface.html Sets the current object as the outing half-edge for the starting vertex. ```APIDOC ## setItselfAsOutingHalfEdgeToTheStartVertex ### Description Configures the current object to be the outgoing half-edge associated with the starting vertex. ### Method Not specified (likely internal utility) ### Endpoint Not applicable (Java method) ### Parameters None ### Request Example None ### Response #### Success Response (void) This method returns void. #### Response Example None ``` -------------------------------- ### PointCloudModelV2 Constructor Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/process/postprocess/pointcloud/PointCloudModelV2.html Initializes a new instance of the PointCloudModelV2 class. ```APIDOC ## PointCloudModelV2() ### Description Initializes a new instance of the PointCloudModelV2 class. ### Method `PointCloudModelV2` ### Endpoint N/A (Constructor) ### Parameters None ### Request Example ```json { "example": "No request body for constructor" } ``` ### Response #### Success Response (200) - **void** - Initializes the object. #### Response Example ```json { "example": "Object initialized" } ``` ``` -------------------------------- ### VoxelGrid3D API Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/index-all.html API for VoxelGrid3D operations, including getting voxel data. ```APIDOC ## GET /api/voxel-grid/voxel ### Description Retrieves a voxel from the VoxelGrid3D at the specified coordinates. ### Method GET ### Endpoint /api/voxel-grid/voxel ### Parameters #### Query Parameters - **x** (int) - Required - The x-coordinate of the voxel. - **y** (int) - Required - The y-coordinate of the voxel. - **z** (int) - Required - The z-coordinate of the voxel. ### Response #### Success Response (200) - **voxel** (Voxel) - The voxel data at the specified coordinates. #### Response Example ```json { "voxel": { "value": 1, "alpha": 1.0 } } ``` ``` ```APIDOC ## GET /api/voxel-grid/voxel-alpha ### Description Retrieves the alpha value of a voxel from the VoxelGrid3D. ### Method GET ### Endpoint /api/voxel-grid/voxel-alpha ### Parameters #### Query Parameters - **x** (int) - Required - The x-coordinate of the voxel. - **y** (int) - Required - The y-coordinate of the voxel. - **z** (int) - Required - The z-coordinate of the voxel. ### Response #### Success Response (200) - **alpha** (float) - The alpha value of the voxel. #### Response Example ```json { "alpha": 0.8 } ``` ``` ```APIDOC ## GET /api/voxel-grid/voxel-position ### Description Retrieves the position of a voxel from the VoxelGrid3D. ### Method GET ### Endpoint /api/voxel-grid/voxel-position ### Parameters #### Query Parameters - **x** (int) - Required - The x-coordinate of the voxel. - **y** (int) - Required - The y-coordinate of the voxel. - **z** (int) - Required - The z-coordinate of the voxel. ### Response #### Success Response (200) - **position** (Vector3d) - The world position of the voxel. #### Response Example ```json { "position": { "x": 1.5, "y": 2.5, "z": 3.5 } } ``` ``` -------------------------------- ### BoundingVolume Class Overview Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/process/tileprocess/tile/tileset/node/BoundingVolume.html Provides information about the BoundingVolume class, its constructors, and methods. ```APIDOC ## Class BoundingVolume ```java public class BoundingVolume extends Object implements Serializable ``` ### Description Represents a bounding volume used in 3D tiles, which can be a bounding box or a bounding sphere. It is serializable. ### Nested Classes - `static enum BoundingVolume.BoundingVolumeType`: Defines the type of bounding volume. ### Constructors - `BoundingVolume(GaiaBoundingBox boundingBox, BoundingVolume.BoundingVolumeType type)`: Creates a BoundingVolume with a specified bounding box and type. - `BoundingVolume(BoundingVolume boundingVolume)`: Creates a copy of an existing BoundingVolume. - `BoundingVolume(BoundingVolume.BoundingVolumeType type)`: Creates a BoundingVolume with a specified type and default bounding box. ### Methods - `calcCenter()`: Calculates and returns the center point of the bounding volume as a `Vector3d`. - `createSqureBoundingVolume()`: Creates a square bounding volume by extending the maximum x or y value. Returns a `BoundingVolume`. - `distributeScene(List tileInfos)`: Distributes scene information among tiles based on bounding volumes. Returns a `List`. ``` -------------------------------- ### GaiaLasPoint RGBA Method Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/converter/pointcloud/GaiaLasPoint.html Method for getting the RGBA color data of a GaiaLasPoint. ```APIDOC ## GET /gaia3d/mago-3d-tiler/GaiaLasPoint/getRgba ### Description Retrieves the RGBA color of the GaiaLasPoint. ### Method GET ### Endpoint /gaia3d/mago-3d-tiler/GaiaLasPoint/getRgba ### Response #### Success Response (200) - **rgba** (byte[]) - The RGBA color values. ``` -------------------------------- ### Basic JAR Conversion Source: https://context7.com/gaia3d/mago-3d-tiler/llms.txt Perform a basic conversion of spatial data to 3D Tiles using the JAR file. Input and output paths are required. ```bash java -jar mago-3d-tiler.jar -input "/data/input/models" -output "/data/output/tiles" ``` ```bash java -jar mago-3d-tiler.jar -i "/data/input/models" -o "/data/output/tiles" ``` ```bash java -jar mago-3d-tiler.jar --help ``` -------------------------------- ### getGaiaScenesContainer Method Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/renderer/engine/Engine.html Retrieves the container for Gaia scenes. No specific setup is required. ```java public GaiaScenesContainer getGaiaScenesContainer() ``` -------------------------------- ### RenderableMesh Class Overview Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/renderer/renderable/RenderableMesh.html Provides an overview of the RenderableMesh class and its constructors. ```APIDOC ## RenderableMesh ### Description Represents a mesh that can be rendered, managing a collection of renderable primitives. ### Constructor Summary * `RenderableMesh()`: Default constructor for RenderableMesh. ``` -------------------------------- ### Select 3D Tiles Version Source: https://context7.com/gaia3d/mago-3d-tiler/llms.txt Choose the 3D Tiles version for the output tileset. Supported versions include 1.0 and 1.1 (default). ```bash java -jar mago-3d-tiler.jar \ -input "/data/models" \ -output "/data/output/tiles" \ -tilesVersion 1.0 ``` -------------------------------- ### deleteObjects Method Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/renderer/engine/Engine.html Deletes objects managed by the Engine. No specific setup is required. ```java public void deleteObjects() ``` -------------------------------- ### run Method Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/process/tileprocess/tile/PointCloudTiler.html Processes a list of TileInfo objects to generate a Tileset. ```APIDOC ## POST /gaia3d/mago-3d-tiler/pointcloudtiler/run ### Description Processes a list of TileInfo objects to generate a Tileset. This method is part of the TilingProcess interface. ### Method `POST` ### Endpoint `/gaia3d/mago-3d-tiler/pointcloudtiler/run` ### Parameters #### Request Body - **tileInfos** (List) - Required - A list of TileInfo objects to process. ``` -------------------------------- ### Get Depth Render Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/renderer/MainRenderer.html Renders the depth information of a GaiaScene into a list of BufferedImage objects. ```APIDOC ## getDepthRender ### Description Renders the depth information of a given GaiaScene into a list of BufferedImage objects, with control over image type and maximum screen size. ### Method void ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body - **gaiaScene** (GaiaScene) - Required - The scene to render depth from. - **bufferedImageType** (int) - Required - The type of buffered image to create. - **resultImages** (List) - Required - A list to store the resulting depth images. - **maxDepthScreenSize** (int) - Required - The maximum screen size for depth rendering. ``` -------------------------------- ### createScene() Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/basic/geometry/modifier/DefaultSceneFactory.html Creates a new, empty GaiaScene. ```APIDOC ## createScene() ### Description Creates a new, empty GaiaScene. ### Method GET ### Endpoint /api/scenes ### Parameters N/A ### Request Example N/A ### Response #### Success Response (200) - **GaiaScene** (object) - The newly created GaiaScene object. #### Response Example ```json { "sceneId": "some-unique-id", "nodes": [] } ``` ``` -------------------------------- ### Get Model View Matrix Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/renderer/engine/scene/Camera.html Retrieves the current model-view matrix for camera transformations. ```java public org.joml.Matrix4d getModelViewMatrix() ``` -------------------------------- ### Get Gaia Scenes Container Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/renderer/engine/EngineVoxelizer.html Retrieves the GaiaScenesContainer object, which holds scene data. ```APIDOC ## GET /gaia3d/mago-3d-tiler/scenes/container ### Description Retrieves the GaiaScenesContainer object. ### Method GET ### Endpoint /gaia3d/mago-3d-tiler/scenes/container ### Response #### Success Response (200) - **GaiaScenesContainer** (object) - The container object for Gaia scenes. ``` -------------------------------- ### GaiaScene Constructor Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/basic/model/GaiaScene.html Initializes a new GaiaScene object. ```APIDOC ## GaiaScene Constructor ### Description Initializes a new GaiaScene object with the provided GaiaSet. ### Method public GaiaScene(GaiaSet gaiaSet) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example None ### Response None ``` -------------------------------- ### GaiaLasPoint RGB Methods Source: https://github.com/gaia3d/mago-3d-tiler/blob/main/docs/com/gaia3d/converter/pointcloud/GaiaLasPoint.html Methods for setting and getting the RGB color data of a GaiaLasPoint. ```APIDOC ## POST /gaia3d/mago-3d-tiler/GaiaLasPoint/setRgb ### Description Sets the RGB color of the GaiaLasPoint. ### Method POST ### Endpoint /gaia3d/mago-3d-tiler/GaiaLasPoint/setRgb ### Parameters #### Request Body - **rgb** (byte[]) - Required - The RGB color values. ## GET /gaia3d/mago-3d-tiler/GaiaLasPoint/getRgb ### Description Retrieves the RGB color of the GaiaLasPoint. ### Method GET ### Endpoint /gaia3d/mago-3d-tiler/GaiaLasPoint/getRgb ### Response #### Success Response (200) - **rgb** (byte[]) - The RGB color values. ```