class-description NEWS COMMUNITY STORE TUTORIALS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE TUTORIALS TOGGLE FULLSCREEN VOLLBILD AN/AUS ObjectRefCountedResource NavigationMeshSourceGeometryData3D
Container for parsed source geometry data used in navigation mesh baking.

Container for parsed source geometry data used in navigation mesh baking.

void add_faces<>( PackedVector3Array faces=, faces:PackedVector3Array=, Transform3D xform=, xform:Transform3D=, ):void

Adds an array of vertex positions to the geometry data for navigation mesh baking to form triangulated faces. For each face the array must have three vertex positions in clockwise winding order. Since NavigationMesh resources have no transform, all vertex positions need to be offset by the node's transform using xform.

void add_mesh<>( Mesh mesh=, mesh:Mesh=, Transform3D xform=, xform:Transform3D=, ):void

Adds the geometry data of a Mesh resource to the navigation mesh baking data. The mesh must have valid triangulated mesh data to be considered. Since NavigationMesh resources have no transform, all vertex positions need to be offset by the node's transform using xform.

void add_mesh_array<>( Array mesh_array=, mesh_array:Array=, Transform3D xform=, xform:Transform3D=, ):void

Adds an Array the size of Mesh.ARRAY_MAX and with vertices at index Mesh.ARRAY_VERTEX and indices at index Mesh.ARRAY_INDEX to the navigation mesh baking data. The array must have valid triangulated mesh data to be considered. Since NavigationMesh resources have no transform, all vertex positions need to be offset by the node's transform using xform.

void clear<>():void

Clears the internal data.

PackedInt32Array get_indices<>():PackedInt32Array

Returns the parsed source geometry data indices array.

PackedFloat32Array get_vertices<>():PackedFloat32Array

Returns the parsed source geometry data vertices array.

bool has_data<>():bool

Returns true when parsed source geometry data exists.

void set_indices<>( PackedInt32Array indices=, indices:PackedInt32Array=, ):void

Sets the parsed source geometry data indices. The indices need to be matched with appropriated vertices.

Warning: Inappropriate data can crash the baking process of the involved third-party libraries.

void set_vertices<>( PackedFloat32Array vertices=, vertices:PackedFloat32Array=, ):void

Sets the parsed source geometry data vertices. The vertices need to be matched with appropriated indices.

Warning: Inappropriate data can crash the baking process of the involved third-party libraries.




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...