- generateSphere(subdivision: number, __namedParameters?: {
shared?: boolean;
typed?: boolean;
}): {
indices: IArray;
positions: IArray;
} | {
indices: number[];
positions: number[];
}
-
Parameters
-
subdivision: number
-
__namedParameters: {
shared?: boolean;
typed?: boolean;
} = {}
-
Optional
shared?: boolean
-
Optional
typed?: boolean
Returns {
indices: IArray;
positions: IArray;
} | {
indices: number[];
positions: number[];
}
Return two typed array for the faces and the vertices making a sphere given by a subdivision. Note that all triangles are decoupled.
Example