- loadPly<Type, ResultType>(url, options?): Promise<LoadResultType<ResultType>>
Type Parameters
- Type extends
| "geometry"
| "line"
| "pbmMesh"
| "pbmPointCloud" - ResultType = {
geometry: BufferGeometry;
line: Line<BufferGeometry, Material | Material[]>;
pbmMesh: PBMMesh;
pbmPointCloud: PBMPointCloud;
}[Type]
Parameters
- url: string
- options: {
customPropertyMapping?: Record<string, {
itemNames: string[];
itemType:
| "float32"
| "uint32"
| "int32"
| "uint16"
| "int16"
| "uint8"
| "int8";
normalized?: boolean;
}>;
fetcher?: Fetcher;
light?: boolean;
modelUpAxis?: "Y" | "Z";
propertyNameMapping?: Record<string, string>;
type?: Type;
upAxis?: "Y" | "Z";
} = {}Optional
customPropertyMapping?: Record<string, {
itemNames: string[];
itemType:
| "float32"
| "uint32"
| "int32"
| "uint16"
| "int16"
| "uint8"
| "int8";
normalized?: boolean;
}>
Optional
fetcher?: Fetcher
Optional
light?: boolean
Optional
modelUpAxis?: "Y" | "Z"
Optional
propertyNameMapping?: Record<string, string>
Optional
type?: Type
Optional
upAxis?: "Y" | "Z"