@babylonjs/lite-compat 1.32.0-preview → 1.33.0-preview

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3164,6 +3164,14 @@ var Mesh = class Mesh extends AbstractMesh {
3164
3164
  tessellation
3165
3165
  }, scene);
3166
3166
  }
3167
+ /** Legacy `Mesh.CreatePolygon(name, shape, scene, holes?, updatable?, sideOrientation?, earcutInjection?)`. */
3168
+ static CreatePolygon(_name, _shape, _scene, _holes, _updatable, _sideOrientation, _earcutInjection) {
3169
+ return unsupported("Mesh.CreatePolygon", "Polygon creation requires a triangulation dependency plus hole, side-orientation, UV, and normal-generation policies that Babylon Lite does not model; adding that geometry subsystem is not a small mechanical Lite extension.");
3170
+ }
3171
+ /** Legacy `Mesh.ExtrudePolygon(name, shape, depth, scene, holes?, updatable?, sideOrientation?, earcutInjection?)`. */
3172
+ static ExtrudePolygon(_name, _shape, _depth, _scene, _holes, _updatable, _sideOrientation, _earcutInjection) {
3173
+ return unsupported("Mesh.ExtrudePolygon", "Polygon extrusion requires a triangulation dependency plus hole, cap, side-wall, UV, and smoothing policies that Babylon Lite does not model; adding that geometry subsystem is not a small mechanical Lite extension.");
3174
+ }
3167
3175
  /** Hardware-instanced copy — unsupported. Use native thin instances instead. */
3168
3176
  createInstance() {
3169
3177
  return unsupported("Mesh.createInstance", "Babylon Lite has no hardware-instance object. Use the native thin-instance API (`setThinInstances`).");
@@ -3443,6 +3451,10 @@ var VertexData = class {
3443
3451
  uvs = null;
3444
3452
  colors = null;
3445
3453
  indices = null;
3454
+ /** Deprecated Babylon.js polygon vertex-data entry point. */
3455
+ static CreatePolygon(polygon, sideOrientation, faceUV, faceColors, frontUVs, backUVs, wrap) {
3456
+ return CreatePolygonVertexData(polygon, sideOrientation, faceUV, faceColors, frontUVs, backUVs, wrap);
3457
+ }
3446
3458
  /**
3447
3459
  * Babylon.js `VertexData.applyToMesh(mesh)` — upload this CPU geometry onto a
3448
3460
  * mesh (typically one created via `new Mesh(name, scene)`). Replaces the Lite
@@ -3645,6 +3657,12 @@ var MeshBuilder = {
3645
3657
  },
3646
3658
  CreateTiledPlane(_name, _options, _scene) {
3647
3659
  return unsupported("MeshBuilder.CreateTiledPlane", "Tiled plane geometry is not implemented in Babylon Lite. Its per-tile UV layout (tile size, alignment, per-tile flip/rotate patterns) is a non-trivial vertex-data generator with pattern design choices — not a mechanical addition — so it needs a Lite core mesh-builder decision.");
3660
+ },
3661
+ CreatePolygon(_name, _options, _scene, _earcutInjection) {
3662
+ return unsupported("MeshBuilder.CreatePolygon", "Polygon creation requires a triangulation dependency plus hole, side-orientation, UV, and normal-generation policies that Babylon Lite does not model; adding that geometry subsystem is not a small mechanical Lite extension.");
3663
+ },
3664
+ ExtrudePolygon(_name, _options, _scene, _earcutInjection) {
3665
+ return unsupported("MeshBuilder.ExtrudePolygon", "Polygon extrusion requires a triangulation dependency plus hole, cap, side-wall, UV, and smoothing policies that Babylon Lite does not model; adding that geometry subsystem is not a small mechanical Lite extension.");
3648
3666
  }
3649
3667
  };
3650
3668
  /** Babylon.js `CreateBox(name, options, scene)` (boxBuilder). */
@@ -3695,7 +3713,29 @@ function CreateTiledBox(name, options, scene) {
3695
3713
  function CreateTiledPlane(name, options, scene) {
3696
3714
  return MeshBuilder.CreateTiledPlane(name, options, scene);
3697
3715
  }
3716
+ /** Babylon.js `CreatePolygon(name, options, scene?, earcutInjection?)` — throwing stub (see `MeshBuilder.CreatePolygon`). */
3717
+ function CreatePolygon(name, options, scene, earcutInjection) {
3718
+ return MeshBuilder.CreatePolygon(name, options, scene, earcutInjection);
3719
+ }
3720
+ /** Babylon.js `ExtrudePolygon(name, options, scene?, earcutInjection?)` — throwing stub (see `MeshBuilder.ExtrudePolygon`). */
3721
+ function ExtrudePolygon(name, options, scene, earcutInjection) {
3722
+ return MeshBuilder.ExtrudePolygon(name, options, scene, earcutInjection);
3723
+ }
3724
+ /** Babylon.js `CreatePolygonVertexData` — the polygon geometry generator requires the unsupported polygon subsystem. */
3725
+ function CreatePolygonVertexData(_polygon, _sideOrientation, _faceUV, _faceColors, _frontUVs, _backUVs, _wrap) {
3726
+ return unsupported("CreatePolygonVertexData", "Polygon vertex generation requires triangulated polygon topology and its cap, side-wall, UV, and normal policies; Babylon Lite has no polygon geometry subsystem to supply that input.");
3727
+ }
3728
+ /** Babylon.js polygon-builder namespace object. */
3729
+ var PolygonBuilder = {
3730
+ ExtrudePolygon,
3731
+ CreatePolygon
3732
+ };
3733
+ /**
3734
+ * Babylon.js side-effect registration shim. Compat defines the corresponding
3735
+ * methods directly, so importing or calling this function requires no mutation.
3736
+ */
3737
+ function RegisterPolygonBuilder() {}
3698
3738
  //#endregion
3699
- export { PBRSpecularGlossinessMaterial as A, transformCoordinates as B, Material as C, PBRMaterial as D, PBRIridescenceConfiguration as E, Observable as F, liteBackedColor3 as G, Quaternion as H, BoundingBox as I, Vector4 as J, Vector2 as K, BoundingInfo as L, StandardMaterial as M, attachMaterialToScene as N, PBRMetallicRoughnessMaterial as O, Node as P, BoundingSphere as R, registerMeshAtStart as S, PBRClearCoatConfiguration as T, Color3 as U, transformNormal as V, Color4 as W, LiteCompatError as X, liteBackedVector3 as Y, unsupported as Z, Mesh as _, CreateDisc as a, VertexBuffer as b, CreateLines as c, CreateTiledBox as d, CreateTiledPlane as f, LinesMesh as g, InstancedMesh as h, CreateDashedLines as i, PushMaterial as j, PBRSheenConfiguration as k, CreatePlane as l, GroundMesh as m, CreateBox as n, CreateGround as o, CreateTorus as p, Vector3 as q, CreateCylinder as r, CreateLineSystem as s, AbstractMesh as t, CreateSphere as u, MeshBuilder as v, PBRAnisotropicConfiguration as w, VertexData as x, TransformNode as y, Matrix as z };
3739
+ export { Vector4 as $, PBRClearCoatConfiguration as A, Observable as B, RegisterPolygonBuilder as C, registerMeshAtStart as D, VertexData as E, PBRSpecularGlossinessMaterial as F, transformCoordinates as G, BoundingInfo as H, PushMaterial as I, Color3 as J, transformNormal as K, StandardMaterial as L, PBRMaterial as M, PBRMetallicRoughnessMaterial as N, Material as O, PBRSheenConfiguration as P, Vector3 as Q, attachMaterialToScene as R, PolygonBuilder as S, VertexBuffer as T, BoundingSphere as U, BoundingBox as V, Matrix as W, liteBackedColor3 as X, Color4 as Y, Vector2 as Z, GroundMesh as _, CreateDisc as a, Mesh as b, CreateLines as c, CreatePolygonVertexData as d, liteBackedVector3 as et, CreateSphere as f, ExtrudePolygon as g, CreateTorus as h, CreateDashedLines as i, PBRIridescenceConfiguration as j, PBRAnisotropicConfiguration as k, CreatePlane as l, CreateTiledPlane as m, CreateBox as n, unsupported as nt, CreateGround as o, CreateTiledBox as p, Quaternion as q, CreateCylinder as r, CreateLineSystem as s, AbstractMesh as t, LiteCompatError as tt, CreatePolygon as u, InstancedMesh as v, TransformNode as w, MeshBuilder as x, LinesMesh as y, Node as z };
3700
3740
 
3701
- //# sourceMappingURL=meshes-Ds66ewr9.js.map
3741
+ //# sourceMappingURL=meshes-BLcUDvXV.js.map