BoundingBox

Vue de l’ensemble

‘BoundingBox’ est une classe dans Aspose.3D FOSS pour Typescript.

Cette classe fournit 8 méthodes pour travailler avec les objets BoundingBox dans des programmes de type. Les méthodologies disponibles comprennent: constructor, contains , ‘infinite’, merge et null ; overlapsWith; scale : toString. Tous les membres publics sont accessibles à n’importe quelle application TypeScript après avoir installé l’Aspose.3D FOSS pour le package TypeCrypt. Propriétés : center., extent.

Description

‘BoundingBox’ est une classe dans la bibliothèque Aspose.3D FOSS pour TypeScript qui expose 7 méthodes et 29 propriétés pour l’utilisation programmatique.

Les fonctionnalités de base comprennent : : nombre; : nombre' ;. ces opérations permettent aux développeurs d’intégrer directement la fonction de boîte-barre dans les applications TypeScript.

La classe fournit également la propriété x (ghett le x), la «y » (gett l’y), et la »z » propriétés (gets le z).

La classe propose 4 surcharges constructeurs, permettant une initialisation flexible en fonction du contexte de l’appel.

Propriétés

NameTypeAccessDescription
x: numberReadGets the x.
y: numberReadGets the y.
z: numberReadGets the z.
x: numberReadGets the x.
y: numberReadGets the y.
z: numberReadGets the z.
x: numberReadGets the x.
y: numberReadGets the y.
z: numberReadGets the z.
x: numberReadGets the x.
y: numberReadGets the y.
z: numberReadGets the z.
minimum{ x: number; y: number; z: number }ReadGets the minimum.
x: numberReadGets the x.
y: numberReadGets the y.
z: numberReadGets the z.
maximum{ x: number; y: number; z: number }ReadGets the maximum.
x: numberReadGets the x.
y: numberReadGets the y.
z: numberReadGets the z.
center{ x: number; y: number; z: number }ReadGets the center.
x: numberReadGets the x.
y: numberReadGets the y.
z: numberReadGets the z.
size{ x: number; y: number; z: number }ReadGets the size.
x: numberReadGets the x.
y: numberReadGets the y.
z: numberReadGets the z.
extentBoundingBoxExtentReadGets the extent.

méthodes

SignatureDescription
constructor()Creates an empty (null) bounding box
constructor(minimum: { x: number; y: number; z: number }, maximum: { x: number; y: number; z: number })Creates a bounding box with the specified minimum and maximum corner points
constructor(minX: number, minY: number, minZ: number, maxX: number, maxY: number, maxZ: number)Creates a bounding box from explicit minimum and maximum coordinate components
constructor()Creates a default bounding box
null()BoundingBoxReturns a null (empty) bounding box
infinite()BoundingBoxReturns an infinite bounding box that contains all points
merge()Merges another bounding box or point into this bounding box
contains(arg: any)booleanReturns true if this bounding box contains the given point or box
overlapsWith(box: BoundingBox)booleanReturns true if this bounding box overlaps with the given bounding box
scale()numberReturns the scale factor of this bounding box
toString()stringReturns a string representation of this bounding box

Voir aussi

  • Aspose.3D - référence API d’entreprise
 Français