import MeshGeoreferencedVertexSpace from "@arcgis/core/geometry/support/MeshGeoreferencedVertexSpace.js";
Inheritance
MeshGeoreferencedVertexSpaceAccessor
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.

See also

Constructors

Constructor

Constructor

Parameters

ParameterTypeDescriptionRequired
properties
See the properties table for a list of all the properties that may be passed into the constructor.

Properties

Any properties can be set, retrieved or listened to. See the Watch for changes topic.
PropertyTypeClass
readonly inherited
readonly [ number, number, number ] | null | undefined
readonly
"georeferenced"

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor

The name of the class. The declared class name is formatted as esri.folder.className.

origin

Property
Type
readonly [ number, number, number ] | null | undefined

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.

type

readonly Property
Type
"georeferenced"

Type of the vertex space.

Methods

MethodSignatureClass
inherited static
fromJSON(json: any): any
inherited
clone(): this
inherited
toJSON(): any

fromJSON

inheritedstatic Method
Signature
fromJSON (json: any): any
Inherited from: JSONSupportMixin

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

ParameterTypeDescriptionRequired
json
any

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

inherited Method
Signature
clone (): this
Inherited from: ClonableMixin

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

inherited Method
Signature
toJSON (): any
Inherited from: JSONSupportMixin

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.