@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
32 lines (31 loc) • 1.35 kB
TypeScript
/**
* Creates a CSG sphere.
*
*
*/
import { CSGSopNode } from './_BaseCSG';
import { NodeParamsConfig } from '../utils/params/ParamsConfig';
import { CoreGroup } from '../../../core/geometry/Group';
import { SopType } from '../../poly/registers/nodes/types/Sop';
declare class CSGSphereSopParamsConfig extends NodeParamsConfig {
/** @param radius */
radius: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.FLOAT>;
/** @param center */
center: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.VECTOR3>;
/** @param geodesic */
geodesic: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.BOOLEAN>;
/** @param segments */
segments: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.INTEGER>;
/** @param frequency */
frequency: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.INTEGER>;
}
export declare class CSGSphereSopNode extends CSGSopNode<CSGSphereSopParamsConfig> {
paramsConfig: CSGSphereSopParamsConfig;
static type(): SopType;
private _center;
private _matrix4;
cook(inputCoreGroups: CoreGroup[]): void;
private _createSphere;
private _createGeodesicSphere;
}
export {};