import { Inputs } from 'bitbybit-occt'; import { OCCTWorkerManager } from '../../../occ-worker/occ-worker-manager'; export declare class OCCTFace { private readonly occWorkerManager; constructor(occWorkerManager: OCCTWorkerManager); /** * Creates a face from wire * @param inputs OpenCascade wire shape and indication if face should be planar * @returns OpenCascade face shape * @group from * @shortname wire * @drawable true */ createFaceFromWire(inputs: Inputs.OCCT.FaceFromWireDto): Promise; /** * Creates faces from wires * @param inputs OpenCascade wire shape and indication if face should be planar * @returns OpenCascade face shape * @group from * @shortname wires * @drawable true */ createFacesFromWires(inputs: Inputs.OCCT.FaceFromWireDto): Promise; /** * Creates a face from the surface * @param inputs Face shape * @returns OpenCascade surface * @group from * @shortname surface * @drawable true */ faceFromSurface(inputs: Inputs.OCCT.ShapeDto): Promise; /** * Creates a face from the surface and a wire * @param inputs OpenCascade surface, a wire and indication wether face should be created inside or not * @returns Face shape * @group from * @shortname surface and wire * @drawable true */ faceFromSurfaceAndWire(inputs: Inputs.OCCT.FaceFromSurfaceAndWireDto): Promise; /** * Creates OpenCascade Polygon face * @param inputs Polygon points * @returns OpenCascade polygon face * @group primitives * @shortname polygon * @drawable true */ createPolygonFace(inputs: Inputs.OCCT.PolygonDto): Promise; /** * Creates OpenCascade circle face * @param inputs Circle parameters * @returns OpenCascade circle face * @group primitives * @shortname circle * @drawable true */ createCircleFace(inputs: Inputs.OCCT.CircleDto): Promise; /** * Creates OpenCascade ellipse face * @param inputs Ellipse parameters * @returns OpenCascade ellipse face * @group primitives * @shortname ellipse * @drawable true */ createEllipseFace(inputs: Inputs.OCCT.EllipseDto): Promise; /** * Creates OpenCascade square face * @param inputs Square parameters * @returns OpenCascade square face * @group primitives * @shortname square * @drawable true */ createSquareFace(inputs: Inputs.OCCT.SquareDto): Promise; /** * Creates OpenCascade rectangle face * @param inputs rectangle parameters * @returns OpenCascade rectangle * @group primitives * @shortname rectangle * @drawable true */ createRectangleFace(inputs: Inputs.OCCT.RectangleDto): Promise; /** * Gets the face by providing an index from the shape * @param inputs Shape * @returns OpenCascade face * @group get * @shortname face * @drawable true */ getFace(inputs: Inputs.OCCT.ShapeIndexDto): Promise; /** * Gets the faces of the shape in a list * @param inputs Shape * @returns OpenCascade faces array * @group get * @shortname faces * @drawable true */ getFaces(inputs: Inputs.OCCT.ShapeDto): Promise; /** * Computes reversed face from input face * @param inputs Face * @returns OpenCascade face * @group get * @shortname reversed * @drawable true */ reversedFace(inputs: Inputs.OCCT.ShapeDto): Promise; /** * Subdivides a face to point grid * @param inputs Face and params for subdivision * @returns points * @group extract * @shortname points * @drawable true */ subdivideToPoints(inputs: Inputs.OCCT.FaceSubdivisionDto): Promise; /** * Subdivides a face to point grid with shifts and removals on nth uv rows or columns * @param inputs Face and params for subdivision * @returns points * @group extract * @shortname points nth * @drawable true */ subdivideToPointsControlled(inputs: Inputs.OCCT.FaceSubdivisionControlledDto): Promise; /** * Subdivides a face to normals grid * @param inputs Face and params for subdivision * @returns normal vectors * @group extract * @shortname normals * @drawable true */ subdivideToNormals(inputs: Inputs.OCCT.FaceSubdivisionDto): Promise; /** * Subdivides a face to uv grid * @param inputs Face and params for subdivision * @returns uv params in array * @group extract * @shortname uvs * @drawable true */ subdivideToUV(inputs: Inputs.OCCT.FaceSubdivisionDto): Promise; /** * Get point on UV where U and V are described between 0 and 1. These will be mapped to real bounds. * @param inputs Face and params for subdivision * @returns point * @group extract * @shortname point on uv * @drawable true */ pointOnUV(inputs: Inputs.OCCT.DataOnUVDto): Promise; /** * Get normal on UV where U and V are described between 0 and 1. These will be mapped to real bounds. * @param inputs Face and params for subdivision * @returns normal vector * @group extract * @shortname normal on uv * @drawable true */ normalOnUV(inputs: Inputs.OCCT.DataOnUVDto): Promise; /** * Get points on UVs where U and V are described between 0 and 1 in two dimensional arrays. These will be mapped to real bounds. * @param inputs Face and params for subdivision * @returns points * @group extract * @shortname points on uvs * @drawable true */ pointsOnUVs(inputs: Inputs.OCCT.DataOnUVsDto): Promise; /** * Get normals on UVs where U and V are described between 0 and 1 in two dimensional arrays. These will be mapped to real bounds. * @param inputs Face and params for subdivision * @returns normals * @group extract * @shortname normals on uvs * @drawable true */ normalsOnUVs(inputs: Inputs.OCCT.DataOnUVsDto): Promise; /** * Subdivides a face to points along a line on parameter * @param inputs Face and params for subdivision * @returns points * @group extract * @shortname points on param * @drawable true */ subdivideToPointsOnParam(inputs: Inputs.OCCT.FaceLinearSubdivisionDto): Promise; /** * Gets the U min bound of the face * @param inputs OCCT Face * @returns u min bound * @group get * @shortname u min * @drawable false */ getUMinBound(inputs: Inputs.OCCT.ShapeDto): Promise; /** * Gets the U max bound of the face * @param inputs OCCT Face * @returns u max bound * @group get * @shortname u max * @drawable false */ getUMaxBound(inputs: Inputs.OCCT.ShapeDto): Promise; /** * Gets the V min bound of the face * @param inputs OCCT Face * @returns v min bound * @group get * @shortname v min * @drawable false */ getVMinBound(inputs: Inputs.OCCT.ShapeDto): Promise; /** * Gets the V max bound of the face * @param inputs OCCT Face * @returns v max bound * @group get * @shortname v max * @drawable false */ getVMaxBound(inputs: Inputs.OCCT.ShapeDto): Promise; /** * Get the area of the face * @param inputs OCCT Face * @returns area * @group get * @shortname face area * @drawable false */ getFaceArea(inputs: Inputs.OCCT.ShapeDto): Promise; /** * Get the areas of the faces * @param inputs OCCT Faces * @returns areas * @group get * @shortname areas of faces * @drawable false */ getFacesAreas(inputs: Inputs.OCCT.ShapesDto): Promise; /** * Get the face center of mass point * @param inputs OCCT Face * @returns point * @group get * @shortname center of mass * @drawable true */ getFaceCenterOfMass(inputs: Inputs.OCCT.ShapeDto): Promise; /** * Get the face center of mass point * @param inputs OCCT Faces * @returns points * @group get * @shortname centers of mass * @drawable true */ getFacesCentersOfMass(inputs: Inputs.OCCT.ShapesDto): Promise; }