import MeshGeoreferencedVertexSpace from "@arcgis/core/geometry/support/MeshGeoreferencedVertexSpace.js";const MeshGeoreferencedVertexSpace = await $arcgis.import("@arcgis/core/geometry/support/MeshGeoreferencedVertexSpace.js");- Inheritance
- MeshGeoreferencedVertexSpace→
Accessor
- Since
- ArcGIS Maps SDK for JavaScript 4.27
Represents a vertex space that interprets Mesh vertex positions in relation to Mesh.spatialReference.
A vertex space is the Mesh.vertexSpace object that tells the SDK how to read the x, y, z positions stored in Mesh.vertexAttributes.position. Use MeshGeoreferencedVertexSpace when those source numbers should be interpreted in map space, either as offsets from a placement point or as absolute coordinates in Mesh.spatialReference.
This vertex space has two common workflows:
- In a local SceneView with a projected coordinate system, use a vertex space origin for models from 3D modeling or CAD tools, whose positions are measured from the source model's own [0,0,0], or for data measured from an insertion point. The vertex space origin places that local [0,0,0] or insertion point in Mesh.spatialReference. Each source position is then an offset from the vertex space origin, using the units and directions of Mesh.spatialReference.
- For source data already exported with absolute coordinates, use no vertex space origin. Each source position is already an absolute x, y, z location in Mesh.spatialReference.
Use the same projected coordinate system for Mesh.spatialReference and SceneView.spatialReference when displaying or editing mesh graphics in a local scene. Do not use this vertex space with a vertex space origin in WGS84 or CGCS2000 for meter-based model coordinates: longitude and latitude are angular units, so [10, 0, 0] is not ten meters east.
Constructors
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| properties | | |
Properties
origin
Optional coordinate used to place source position values that are offsets.
With a vertex space origin, this [x, y, z] coordinate is interpreted in Mesh.spatialReference. Each source position in Mesh.vertexAttributes.position is then an offset from the vertex space's origin.
Without a vertex space origin, each source position is already an absolute x, y, z location in Mesh.spatialReference.
Methods
| Method | Signature | Class |
|---|---|---|
| inherited static | fromJSON(json: any): any | |
| inherited | clone(): this | |
| inherited | toJSON(): any |
fromJSON
- Signature
-
fromJSON (json: any): any
Creates a new instance of this class and initializes it with values from a JSON object
generated from an ArcGIS product. The object passed into the input json
parameter often comes from a response to a query operation in the REST API or a
toJSON()
method from another ArcGIS product. See the Using fromJSON()
topic in the Guide for details and examples of when and how to use this function.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| json | A JSON representation of the instance in the ArcGIS format. See the ArcGIS REST API documentation for examples of the structure of various input JSON objects. | |
- Returns
- any
Returns a new instance of this class.
clone
- Signature
-
clone (): this
Creates a deep clone of this object. Any properties that store values by reference will be assigned copies of the referenced values on the cloned instance.
- Returns
- this
A deep clone of the class instance that invoked this method.
toJSON
- Signature
-
toJSON (): any
Converts an instance of this class to its ArcGIS portal JSON representation. See the Using fromJSON() guide topic for more information.
- Returns
- any
The ArcGIS portal JSON representation of an instance of this class.