@bitbybit-dev/core
Version:
Bit By Bit Developers Core CAD API to Program Geometry
818 lines (817 loc) • 20.1 kB
TypeScript
import { BaseTypes } from "../bitbybit/base-types";
import { Base } from "./base-inputs";
export declare namespace Verb {
class CurveDto {
constructor(curve?: any);
/**
* Nurbs curve
*/
curve: any;
}
class CurvesDto {
constructor(curves?: any[]);
/**
* Nurbs curves
*/
curves: any[];
}
class ClosestPointDto {
constructor(curve?: any, point?: Base.Point3);
/**
* Nurbs curve
*/
curve: any;
/**
* Point
*/
point: Base.Point3;
}
class ClosestPointsDto {
constructor(curve?: any, points?: Base.Point3[]);
/**
* Nurbs curve
*/
curve: any;
/**
* Points
*/
points: Base.Point3[];
}
class BezierCurveDto {
constructor(points?: Base.Point3[], weights?: number[]);
/**
* Control points
*/
points: Base.Point3[];
/**
* Weights
*/
weights: number[];
}
class DrawCurveDto<T> {
/**
* Provide options without default values
*/
constructor(curve?: any, opacity?: number, colours?: string | string[], size?: number, updatable?: boolean, curveMesh?: T);
/**
* Nurbs curve
*/
curve: any;
/**
* Value between 0 and 1
*/
opacity: number;
/**
* Hex colour string
*/
colours: string | string[];
/**
* Width of the polyline
*/
size: number;
/**
* Indicates wether the position of this curve will change in time
*/
updatable: boolean;
/**
* Curve mesh variable in case it already exists and needs updating
*/
curveMesh?: T;
}
class CurveParameterDto {
constructor(curve?: any, parameter?: number);
/**
* Nurbs curve
*/
curve: any;
/**
* Parameter on the curve
*/
parameter: number;
}
class CurvesParameterDto {
constructor(curves?: any[], parameter?: number);
/**
* Nurbs curve
*/
curves: any;
/**
* Parameter on the curve
*/
parameter: number;
}
class CurveTransformDto {
constructor(curve?: any, transformation?: Base.TransformMatrixes);
/**
* Nurbs curve
*/
curve: any;
/**
* Transformation matrixes
*/
transformation: Base.TransformMatrixes;
}
class CurvesTransformDto {
constructor(curves?: any[], transformation?: Base.TransformMatrixes);
/**
* Nurbs curve
*/
curves: any[];
/**
* Transformation matrixes
*/
transformation: Base.TransformMatrixes;
}
class CurveToleranceDto {
constructor(curve?: any, tolerance?: number);
/**
* Nurbs curve
*/
curve: any;
/**
* Optional tolerance
*/
tolerance: number;
}
class CurveLengthToleranceDto {
constructor(curve?: any, length?: number, tolerance?: number);
/**
* Nurbs curve
*/
curve: any;
/**
* Length on the curve
*/
length: number;
/**
* Tolerance
*/
tolerance: number;
}
class CurveDerivativesDto {
constructor(curve?: any, parameter?: number, numDerivatives?: number);
/**
* Nurbs curve
*/
curve: any;
/**
* Number of derivatives
*/
numDerivatives: number;
/**
* Parameter on the curve
*/
parameter: number;
}
class CurveSubdivisionsDto {
constructor(curve?: any, subdivision?: number);
/**
* Nurbs curve
*/
curve: any;
/**
* Number of subdivisions
*/
subdivision: number;
}
class CurvesSubdivisionsDto {
constructor(curves?: any[], subdivision?: number);
/**
* Nurbs curves
*/
curves: any[];
/**
* Number of subdivisions
*/
subdivision: number;
}
class CurvesDivideLengthDto {
constructor(curves?: any[], length?: number);
/**
* Nurbs curves
*/
curves: any[];
/**
* Length of subdivisions
*/
length: number;
}
class CurveDivideLengthDto {
constructor(curve?: any, length?: number);
/**
* Nurbs curve
*/
curve: any;
/**
* Length of subdivisions
*/
length: number;
}
class DrawCurvesDto<T> {
/**
* Provide options without default values
*/
constructor(curves?: any[], opacity?: number, colours?: string | string[], size?: number, updatable?: boolean, curvesMesh?: T);
/**
* Nurbs curves
*/
curves: any[];
/**
* Value between 0 and 1
*/
opacity: number;
/**
* Hex colour string
*/
colours: string | string[];
/**
* Width of the polyline
*/
size: number;
/**
* Indicates wether the position of this polyline will change in time
*/
updatable: boolean;
/**
* Curve mesh variable in case it already exists and needs updating
*/
curvesMesh?: T;
}
class CurveNurbsDataDto {
constructor(degree?: number, weights?: number[], knots?: number[], points?: Base.Point3[]);
/**
* Nurbs curve degree
*/
degree: number;
/**
* Weights that identify strength that attracts curve to control points
*/
weights: number[];
/**
* Knots of the Nurbs curve
*/
knots: number[];
/**
* Control points of the nurbs curve
*/
points: Base.Point3[];
}
class CurvePathDataDto {
constructor(degree?: number, points?: Base.Point3[]);
/**
* Nurbs curve degree
*/
degree: number;
/**
* Control points of the nurbs curve
*/
points: Base.Point3[];
}
class EllipseDto {
constructor(ellipse?: any);
/**
* Nurbs ellipse
*/
ellipse: any;
}
class CircleDto {
constructor(circle?: any);
/**
* Nurbs circle
*/
circle: any;
}
class ArcDto {
constructor(arc?: any);
/**
* Nurbs arc
*/
arc: any;
}
class EllipseParametersDto {
constructor(xAxis?: Base.Vector3, yAxis?: Base.Vector3, center?: Base.Point3);
/**
* X axis of the circle
*/
xAxis: Base.Vector3;
/**
* Y axis of the circle
*/
yAxis: Base.Vector3;
/**
* Center of the circle
*/
center: Base.Point3;
}
class CircleParametersDto {
constructor(xAxis?: Base.Vector3, yAxis?: Base.Vector3, radius?: number, center?: Base.Point3);
/**
* X axis of the circle
*/
xAxis: Base.Vector3;
/**
* Y axis of the circle
*/
yAxis: Base.Vector3;
/**
* Radius of the circle
*/
radius: number;
/**
* Center of the circle
*/
center: Base.Point3;
}
class ArcParametersDto {
constructor(minAngle?: number, maxAngle?: number, xAxis?: Base.Vector3, yAxis?: Base.Vector3, radius?: number, center?: Base.Point3);
/**
* Minimum angle in degrees
*/
minAngle: number;
/**
* Maximum angle in degrees
*/
maxAngle: number;
/**
* X axis of the circle
*/
xAxis: Base.Vector3;
/**
* Y axis of the circle
*/
yAxis: Base.Vector3;
/**
* Radius of the circle
*/
radius: number;
/**
* Center of the circle
*/
center: Base.Point3;
}
class EllipseArcParametersDto {
constructor(minAngle?: number, maxAngle?: number, xAxis?: Base.Vector3, yAxis?: Base.Vector3, center?: Base.Point3);
/**
* Minimum angle in degrees
*/
minAngle: number;
/**
* Maximum angle in degrees
*/
maxAngle: number;
/**
* X axis of the circle
*/
xAxis: Base.Vector3;
/**
* Y axis of the circle
*/
yAxis: Base.Vector3;
/**
* Center of the circle
*/
center: Base.Point3;
}
class SurfaceDto {
constructor(surface?: any);
/**
* Nurbs surface
*/
surface: any;
}
class SurfaceTransformDto {
constructor(surface?: any, transformation?: Base.TransformMatrixes);
/**
* Nurbs surface
*/
surface: any;
/**
* Transformations
*/
transformation: Base.TransformMatrixes;
}
class SurfaceParameterDto {
constructor(surface?: any, parameter?: number, useV?: boolean);
/**
* Nurbs surface
*/
surface: any;
/**
* Parameter on the surface
*/
parameter: number;
/**
* Default parameter is on U direction, use V to switch
*/
useV: boolean;
}
class IsocurvesParametersDto {
constructor(surface?: any, parameters?: number[], useV?: boolean);
/**
* Nurbs surface
*/
surface: any;
/**
* Parameter on the surface
*/
parameters: number[];
/**
* Default parameter is on U direction, use V to switch
*/
useV: boolean;
}
class IsocurveSubdivisionDto {
/**
* Provide undefined options
*/
constructor(surface?: any, useV?: boolean, includeLast?: boolean, includeFirst?: boolean, isocurveSegments?: number);
/**
* Nurbs surface
*/
surface: any;
/**
* Default parameter is on U direction, use V to switch
*/
useV: boolean;
/**
* Check to include the last isocurve
*/
includeLast: boolean;
/**
* Check to include the first isocurve
*/
includeFirst: boolean;
/**
* Number of segments including surface start and end
*/
isocurveSegments: number;
}
class DerivativesDto {
constructor(surface?: any, u?: number, v?: number, numDerivatives?: number);
/**
* Nurbs surface
*/
surface: any;
/**
* U coordinate
*/
u: number;
/**
* V coordinate
*/
v: number;
/**
* Number of derivatives
*/
numDerivatives: number;
}
class SurfaceLocationDto {
constructor(surface?: any, u?: number, v?: number);
/**
* Nurbs surface
*/
surface: any;
/**
* U coordinate
*/
u: number;
/**
* V coordinate
*/
v: number;
}
class CornersDto {
constructor(point1?: Base.Point3, point2?: Base.Point3, point3?: Base.Point3, point4?: Base.Point3);
/**
* Corner 1
*/
point1: Base.Point3;
/**
* Corner 2
*/
point2: Base.Point3;
/**
* Corner 3
*/
point3: Base.Point3;
/**
* Corner 4
*/
point4: Base.Point3;
}
class SurfaceParamDto {
constructor(surface?: any, point?: Base.Point3);
/**
* Nurbs surface
*/
surface: any;
/**
* Point
*/
point: Base.Point3;
}
class KnotsControlPointsWeightsDto {
constructor(degreeU?: number, degreeV?: number, knotsU?: number[], knotsV?: number[], points?: Base.Point3[], weights?: number[]);
/**
* U direction degree
*/
degreeU: number;
/**
* V direction degree
*/
degreeV: number;
/**
* U direction knots
*/
knotsU: number[];
/**
* V direction knots
*/
knotsV: number[];
/**
* Points
*/
points: Base.Point3[];
/**
* Weights
*/
weights: number[];
}
class LoftCurvesDto {
constructor(degreeV?: number, curves?: any[]);
/**
* V direction degree
*/
degreeV: number;
/**
* Nurbs curves
*/
curves: any[];
}
class DrawSurfaceDto<T> {
/**
* Provide options without default values
*/
constructor(surface?: any, opacity?: number, colours?: string | string[], updatable?: boolean, hidden?: boolean, surfaceMesh?: T);
/**
* Nurbs surface
*/
surface: any;
/**
* Value between 0 and 1
*/
opacity: number;
/**
* Hex colour string
*/
colours: string | string[];
/**
* Indicates wether the position of this surface will change in time
*/
updatable: boolean;
/**
* Should be hidden
*/
hidden: boolean;
/**
* Surface mesh variable in case it already exists and needs updating
*/
surfaceMesh?: T;
}
class DrawSurfacesDto<T> {
/**
* Provide options without default values
*/
constructor(surfaces?: any[], opacity?: number, colours?: string | string[], updatable?: boolean, hidden?: boolean, surfacesMesh?: T);
/**
* Nurbs surfaces
*/
surfaces: any[];
/**
* Value between 0 and 1
*/
opacity: number;
/**
* Hex colour string
*/
colours: string | string[];
/**
* Indicates wether the position of these surfaces will change in time
*/
updatable: boolean;
/**
* Should be hidden
*/
hidden: boolean;
/**
* Surfaces mesh variable in case it already exists and needs updating
*/
surfacesMesh?: T;
}
class DrawSurfacesColoursDto<T> {
/**
* Provide options without default values
*/
constructor(surfaces?: any[], colours?: string[], opacity?: number, updatable?: boolean, hidden?: boolean, surfacesMesh?: T);
/**
* Nurbs surfaces
*/
surfaces: any[];
/**
* Value between 0 and 1
*/
opacity: number;
/**
* Hex colour strings, there has to be a colour for every single surface and lengths of arrays need to match
*/
colours: string | string[];
/**
* Indicates wether the position of these surfaces will change in time
*/
updatable: boolean;
/**
* Indicates if surface should be hidden
*/
hidden: boolean;
/**
* Surfaces mesh variable in case it already exists and needs updating
*/
surfacesMesh?: T;
}
class ConeAndCylinderParametersDto {
constructor(axis?: Base.Vector3, xAxis?: Base.Vector3, base?: Base.Point3, height?: number, radius?: number);
/**
* Defines main axis of the cone
*/
axis: Base.Vector3;
/**
* X axis of the cone
*/
xAxis: Base.Vector3;
/**
* Base point for the cone
*/
base: Base.Point3;
/**
* Height of the cone
*/
height: number;
/**
* Radius of the cone
*/
radius: number;
}
class ConeDto {
constructor(cone?: any);
/**
* Conical Nurbs surface
*/
cone: any;
}
class CylinderDto {
constructor(cylinder?: any);
/**
* Cylindrical Nurbs surface
*/
cylinder: any;
}
class ExtrusionParametersDto {
constructor(profile?: any, direction?: Base.Vector3);
/**
* Profile Nurbs curve
*/
profile: any;
/**
* Direction vector
*/
direction: Base.Vector3;
}
class ExtrusionDto {
constructor(extrusion?: any);
/**
* Nurbs surface created through extrusion
*/
extrusion: any;
}
class SphericalParametersDto {
constructor(radius?: number, center?: number[]);
/**
* Radius of the sphere
*/
radius: number;
/**
* Center point
*/
center: number[];
}
class SphereDto {
constructor(sphere?: any);
/**
* Spherical Nurbs surface
*/
sphere: any;
}
class RevolutionParametersDto {
constructor(profile?: any, center?: number[], axis?: number[], angle?: number);
/**
* Profile Nurbs curve
*/
profile: any;
/**
* Center point
*/
center: number[];
/**
* Axis around which rotation will happen
*/
axis: number[];
/**
* Angle at which to rotate in degrees
*/
angle: number;
}
class RevolutionDto {
constructor(revolution?: any);
/**
* Revolved Nurbs surface
*/
revolution: any;
}
class SweepParametersDto {
constructor(profile?: any, rail?: any);
/**
* Profile Nurbs curve
*/
profile: any;
/**
* Rail Nurbs curve
*/
rail: any;
}
class SweepDto {
constructor(sweep?: any);
/**
* Revolved Nurbs surface
*/
sweep: any;
}
class CurveCurveDto {
constructor(firstCurve?: any, secondCurve?: any, tolerance?: number);
/**
* First Nurbs curve
*/
firstCurve: any;
/**
* Second Nurbs curve
*/
secondCurve: number[];
/**
* Optional tolerance parameter
*/
tolerance?: number;
}
class CurveSurfaceDto {
constructor(curve?: any, surface?: any, tolerance?: number);
/**
* Nurbs curve
*/
curve: any;
/**
* Nurbs surface
*/
surface: any;
/**
* Optional tolerance parameter
*/
tolerance?: number;
}
class SurfaceSurfaceDto {
constructor(firstSurface?: any, secondSurface?: any, tolerance?: number);
/**
* Nurbs curve
*/
firstSurface: any;
/**
* Nurbs surface
*/
secondSurface: any;
/**
* Optional tolerance parameter
*/
tolerance?: number;
}
class CurveCurveIntersectionsDto {
constructor(intersections?: BaseTypes.CurveCurveIntersection[]);
/**
* Curve curve intersections
*/
intersections: BaseTypes.CurveCurveIntersection[];
}
class CurveSurfaceIntersectionsDto {
constructor(intersections?: BaseTypes.CurveSurfaceIntersection[]);
/**
* Curve curve intersections
*/
intersections: BaseTypes.CurveSurfaceIntersection[];
}
}