-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Fix website, upgrade to docusaurus 3.5 (#3139)
- Loading branch information
Showing
93 changed files
with
18,683 additions
and
23,677 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Tiles3DWriter | ||
|
||
TBA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
// Mesh category utilities | ||
// TODO - move to mesh category module, or to math.gl/geometry module | ||
import {MeshAttributes} from '../categories/category-mesh'; | ||
import {TypedArray} from '../types/types'; | ||
|
||
type TypedArrays = {[key: string]: TypedArray}; | ||
|
||
/** | ||
* Holds an axis aligned bounding box | ||
* TODO - make sure AxisAlignedBoundingBox in math.gl/culling understands this format (or change this format) | ||
*/ | ||
type BoundingBox = [[number, number, number], [number, number, number]]; | ||
|
||
/** | ||
* Get number of vertices in mesh | ||
* @param attributes | ||
* @deprecated Import from shema-utils | ||
*/ | ||
export function getMeshSize(attributes: TypedArrays): number { | ||
let size = 0; | ||
for (const attributeName in attributes) { | ||
const attribute = attributes[attributeName]; | ||
if (ArrayBuffer.isView(attribute)) { | ||
// @ts-ignore DataView doesn't have BYTES_PER_ELEMENT | ||
size += attribute.byteLength * attribute.BYTES_PER_ELEMENT; | ||
} | ||
} | ||
return size; | ||
} | ||
|
||
/** | ||
* Get the (axis aligned) bounding box of a mesh | ||
* @param attributes | ||
* @returns array of two vectors representing the axis aligned bounding box | ||
* @deprecated Import from shema-utils | ||
*/ | ||
// eslint-disable-next-line complexity | ||
export function getMeshBoundingBox(attributes: MeshAttributes): BoundingBox { | ||
let minX = Infinity; | ||
let minY = Infinity; | ||
let minZ = Infinity; | ||
let maxX = -Infinity; | ||
let maxY = -Infinity; | ||
let maxZ = -Infinity; | ||
|
||
const positions = attributes.POSITION ? attributes.POSITION.value : []; | ||
const len = positions && positions.length; | ||
|
||
for (let i = 0; i < len; i += 3) { | ||
const x = positions[i]; | ||
const y = positions[i + 1]; | ||
const z = positions[i + 2]; | ||
|
||
minX = x < minX ? x : minX; | ||
minY = y < minY ? y : minY; | ||
minZ = z < minZ ? z : minZ; | ||
|
||
maxX = x > maxX ? x : maxX; | ||
maxY = y > maxY ? y : maxY; | ||
maxZ = z > maxZ ? z : maxZ; | ||
} | ||
return [ | ||
[minX, minY, minZ], | ||
[maxX, maxY, maxZ] | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.