door_models 5.3.8 → 5.3.9

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.
package/dist/index.cjs.js CHANGED
@@ -1520,6 +1520,8 @@ function DoorModels(_ref7) {
1520
1520
  const sidesThkValue = parseInt(sidesThk) || 20;
1521
1521
 
1522
1522
  // Convert dimensions from mm to meters
1523
+ const totalWidthM = totalWidthProp !== undefined ? totalWidthProp / 1000 : totalWidth / 1000;
1524
+ const totalHeightM = totalHeightProp !== undefined ? totalHeightProp / 1000 : doorHeight / 1000;
1523
1525
  const interiorFanlightHeightM = interiorFanlightHeight / 1000;
1524
1526
  const doorWidthM = doorWidth / 1000;
1525
1527
  const totalOpeningHeightM = doorHeight / 1000;
@@ -1609,287 +1611,296 @@ function DoorModels(_ref7) {
1609
1611
  })
1610
1612
  });
1611
1613
  }
1612
- return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
1613
- children: /*#__PURE__*/jsxRuntime.jsxs("group", {
1614
- "position-y": yCenteringOffset + pivotNewPosition,
1615
- children: [frontCoverPanel.visible && /*#__PURE__*/jsxRuntime.jsxs("group", {
1616
- "position-z": frontArchitraveZ,
1617
- children: [/*#__PURE__*/jsxRuntime.jsx("mesh", {
1618
- position: [0, topArchitraveY, 0],
1619
- castShadow: true,
1620
- material: allMaterials.frontCoverPanelMaterial,
1621
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1622
- args: [topArchitraveWidth, architraveProfileM, architraveDepthM]
1623
- })
1624
- }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1625
- position: [leftArchitraveX, 0, 0],
1626
- castShadow: true,
1627
- material: allMaterials.frontCoverPanelMaterial,
1628
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1629
- args: [architraveProfileM, totalOpeningHeightM, architraveDepthM]
1630
- })
1631
- }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1632
- position: [rightArchitraveX, 0, 0],
1633
- castShadow: true,
1634
- material: allMaterials.frontCoverPanelMaterial,
1635
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1636
- args: [architraveProfileM, totalOpeningHeightM, architraveDepthM]
1637
- })
1638
- })]
1639
- }), backCoverPanel.visible && /*#__PURE__*/jsxRuntime.jsxs("group", {
1640
- "position-z": backArchitraveZ,
1641
- children: [/*#__PURE__*/jsxRuntime.jsx("mesh", {
1642
- position: [0, topArchitraveY, 0],
1643
- castShadow: true,
1644
- material: allMaterials.backCoverPanelMaterial,
1645
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1646
- args: [topArchitraveWidth, architraveProfileM, architraveDepthM]
1647
- })
1648
- }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1649
- position: [leftArchitraveX, 0, 0],
1650
- castShadow: true,
1651
- material: allMaterials.backCoverPanelMaterial,
1652
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1653
- args: [architraveProfileM, totalOpeningHeightM, architraveDepthM]
1654
- })
1655
- }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1656
- position: [rightArchitraveX, 0, 0],
1657
- castShadow: true,
1658
- material: allMaterials.backCoverPanelMaterial,
1659
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1660
- args: [architraveProfileM, totalOpeningHeightM, architraveDepthM]
1661
- })
1662
- })]
1663
- }), exteriorFanlight.visible && /*#__PURE__*/jsxRuntime.jsx("mesh", {
1664
- position: [0, exteriorFanlightYPosition, 0],
1665
- castShadow: true,
1666
- material: allMaterials.exteriorFanlightMaterial,
1614
+ return (
1615
+ /*#__PURE__*/
1616
+ // CHANGE START: Wrap the entire component in a parent group.
1617
+ jsxRuntime.jsxs("group", {
1618
+ children: [/*#__PURE__*/jsxRuntime.jsx("mesh", {
1619
+ visible: false,
1667
1620
  children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1668
- args: [totalOpeningWidthM + sidesFrameWidthM * 2, exteriorFanlightHeightM, exteriorFanlightDepthM]
1621
+ args: [totalWidthM, totalHeightM, frameDepthM]
1669
1622
  })
1670
- }), isFrameVisible && /*#__PURE__*/jsxRuntime.jsxs("group", {
1671
- children: [/*#__PURE__*/jsxRuntime.jsx("mesh", {
1672
- castShadow: true,
1673
- position: [0, topFrameCenterY, 0],
1674
- children: /*#__PURE__*/jsxRuntime.jsxs(csg.Geometry, {
1675
- useGroups: true,
1676
- children: [/*#__PURE__*/jsxRuntime.jsx(csg.Base, {
1677
- name: "frame-base",
1678
- material: allMaterials.frameMaterial,
1679
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1680
- args: [totalOpeningWidthM, topFrameWidthM, frameDepthM]
1681
- })
1682
- }), !["MXF_40", "MXF_50", "MXCAF_40", "MXCAF_50"].includes(frameType) && /*#__PURE__*/jsxRuntime.jsx(csg.Subtraction, {
1683
- name: "cut-exterior",
1684
- material: allMaterials.frameMaterial,
1685
- position: [0, notchposition, 0],
1686
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1687
- args: [totalOpeningWidthM + 0.01, notchWidthM, notchDepthM]
1688
- })
1689
- })]
1690
- })
1691
- }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1692
- castShadow: true,
1693
- position: [-totalOpeningWidthM / 2 - sidesFrameWidthM / 2, sideFrameCenterY, 0],
1694
- children: /*#__PURE__*/jsxRuntime.jsxs(csg.Geometry, {
1695
- useGroups: true,
1696
- children: [/*#__PURE__*/jsxRuntime.jsx(csg.Base, {
1697
- name: "frame-base",
1698
- material: allMaterials.frameMaterial,
1699
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1700
- args: [sidesFrameWidthM, totalOpeningHeightM + topFrameWidthM, frameDepthM]
1701
- })
1702
- }), !["MXF_40", "MXF_50", "MXCAF_40", "MXCAF_50"].includes(frameType) && /*#__PURE__*/jsxRuntime.jsx(csg.Subtraction, {
1703
- name: "cut-exterior",
1704
- material: allMaterials.frameMaterial,
1705
- position: [-notchposition, 0, 0],
1706
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1707
- args: [notchWidthM, totalOpeningHeightM + topFrameWidthM + 0.01, notchDepthM]
1708
- })
1709
- })]
1710
- })
1711
- }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1712
- castShadow: true,
1713
- position: [totalOpeningWidthM / 2 + sidesFrameWidthM / 2, sideFrameCenterY, 0],
1714
- children: /*#__PURE__*/jsxRuntime.jsxs(csg.Geometry, {
1715
- useGroups: true,
1716
- children: [/*#__PURE__*/jsxRuntime.jsx(csg.Base, {
1717
- name: "frame-base",
1718
- material: allMaterials.frameMaterial,
1719
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1720
- args: [sidesFrameWidthM, totalOpeningHeightM + topFrameWidthM, frameDepthM]
1721
- })
1722
- }), !["MXF_40", "MXF_50", "MXCAF_40", "MXCAF_50"].includes(frameType) && /*#__PURE__*/jsxRuntime.jsx(csg.Subtraction, {
1723
- name: "cut-exterior",
1724
- material: allMaterials.frameMaterial,
1725
- position: [notchposition, 0, 0],
1726
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1727
- args: [notchWidthM, totalOpeningHeightM + topFrameWidthM + 0.01, notchDepthM]
1728
- })
1729
- })]
1730
- })
1731
- }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1732
- castShadow: true,
1733
- position: [0, totalOpeningHeightM / 2 - doorStopWidthM / 2, doorStopPositionZ],
1734
- material: allMaterials.doorStopMaterial,
1735
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1736
- args: [totalOpeningWidthM, doorStopWidthM, doorStopDepthM]
1737
- })
1738
- }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1739
- castShadow: true,
1740
- position: [-totalOpeningWidthM / 2 + doorStopWidthM / 2, 0, doorStopPositionZ],
1741
- material: allMaterials.doorStopMaterial,
1742
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1743
- args: [doorStopWidthM, totalOpeningHeightM, doorStopDepthM]
1744
- })
1745
- }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1623
+ }), /*#__PURE__*/jsxRuntime.jsxs("group", {
1624
+ "position-y": yCenteringOffset + pivotNewPosition,
1625
+ children: [frontCoverPanel.visible && /*#__PURE__*/jsxRuntime.jsxs("group", {
1626
+ "position-z": frontArchitraveZ,
1627
+ children: [/*#__PURE__*/jsxRuntime.jsx("mesh", {
1628
+ position: [0, topArchitraveY, 0],
1629
+ castShadow: true,
1630
+ material: allMaterials.frontCoverPanelMaterial,
1631
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1632
+ args: [topArchitraveWidth, architraveProfileM, architraveDepthM]
1633
+ })
1634
+ }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1635
+ position: [leftArchitraveX, 0, 0],
1636
+ castShadow: true,
1637
+ material: allMaterials.frontCoverPanelMaterial,
1638
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1639
+ args: [architraveProfileM, totalOpeningHeightM, architraveDepthM]
1640
+ })
1641
+ }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1642
+ position: [rightArchitraveX, 0, 0],
1643
+ castShadow: true,
1644
+ material: allMaterials.frontCoverPanelMaterial,
1645
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1646
+ args: [architraveProfileM, totalOpeningHeightM, architraveDepthM]
1647
+ })
1648
+ })]
1649
+ }), backCoverPanel.visible && /*#__PURE__*/jsxRuntime.jsxs("group", {
1650
+ "position-z": backArchitraveZ,
1651
+ children: [/*#__PURE__*/jsxRuntime.jsx("mesh", {
1652
+ position: [0, topArchitraveY, 0],
1653
+ castShadow: true,
1654
+ material: allMaterials.backCoverPanelMaterial,
1655
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1656
+ args: [topArchitraveWidth, architraveProfileM, architraveDepthM]
1657
+ })
1658
+ }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1659
+ position: [leftArchitraveX, 0, 0],
1660
+ castShadow: true,
1661
+ material: allMaterials.backCoverPanelMaterial,
1662
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1663
+ args: [architraveProfileM, totalOpeningHeightM, architraveDepthM]
1664
+ })
1665
+ }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1666
+ position: [rightArchitraveX, 0, 0],
1667
+ castShadow: true,
1668
+ material: allMaterials.backCoverPanelMaterial,
1669
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1670
+ args: [architraveProfileM, totalOpeningHeightM, architraveDepthM]
1671
+ })
1672
+ })]
1673
+ }), exteriorFanlight.visible && /*#__PURE__*/jsxRuntime.jsx("mesh", {
1674
+ position: [0, exteriorFanlightYPosition, 0],
1746
1675
  castShadow: true,
1747
- position: [totalOpeningWidthM / 2 - doorStopWidthM / 2, 0, doorStopPositionZ],
1748
- material: allMaterials.doorStopMaterial,
1676
+ material: allMaterials.exteriorFanlightMaterial,
1749
1677
  children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1750
- args: [doorStopWidthM, totalOpeningHeightM, doorStopDepthM]
1678
+ args: [totalOpeningWidthM + sidesFrameWidthM * 2, exteriorFanlightHeightM, exteriorFanlightDepthM]
1751
1679
  })
1752
- }), frameType !== "WF_FLI" && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
1680
+ }), isFrameVisible && /*#__PURE__*/jsxRuntime.jsxs("group", {
1753
1681
  children: [/*#__PURE__*/jsxRuntime.jsx("mesh", {
1754
1682
  castShadow: true,
1755
- position: [0, topGasketYPosition, gasketZPosition],
1756
- material: allMaterials.gasketMaterial,
1683
+ position: [0, topFrameCenterY, 0],
1684
+ children: /*#__PURE__*/jsxRuntime.jsxs(csg.Geometry, {
1685
+ useGroups: true,
1686
+ children: [/*#__PURE__*/jsxRuntime.jsx(csg.Base, {
1687
+ name: "frame-base",
1688
+ material: allMaterials.frameMaterial,
1689
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1690
+ args: [totalOpeningWidthM, topFrameWidthM, frameDepthM]
1691
+ })
1692
+ }), !["MXF_40", "MXF_50", "MXCAF_40", "MXCAF_50"].includes(frameType) && /*#__PURE__*/jsxRuntime.jsx(csg.Subtraction, {
1693
+ name: "cut-exterior",
1694
+ material: allMaterials.frameMaterial,
1695
+ position: [0, notchposition, 0],
1696
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1697
+ args: [totalOpeningWidthM + 0.01, notchWidthM, notchDepthM]
1698
+ })
1699
+ })]
1700
+ })
1701
+ }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1702
+ castShadow: true,
1703
+ position: [-totalOpeningWidthM / 2 - sidesFrameWidthM / 2, sideFrameCenterY, 0],
1704
+ children: /*#__PURE__*/jsxRuntime.jsxs(csg.Geometry, {
1705
+ useGroups: true,
1706
+ children: [/*#__PURE__*/jsxRuntime.jsx(csg.Base, {
1707
+ name: "frame-base",
1708
+ material: allMaterials.frameMaterial,
1709
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1710
+ args: [sidesFrameWidthM, totalOpeningHeightM + topFrameWidthM, frameDepthM]
1711
+ })
1712
+ }), !["MXF_40", "MXF_50", "MXCAF_40", "MXCAF_50"].includes(frameType) && /*#__PURE__*/jsxRuntime.jsx(csg.Subtraction, {
1713
+ name: "cut-exterior",
1714
+ material: allMaterials.frameMaterial,
1715
+ position: [-notchposition, 0, 0],
1716
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1717
+ args: [notchWidthM, totalOpeningHeightM + topFrameWidthM + 0.01, notchDepthM]
1718
+ })
1719
+ })]
1720
+ })
1721
+ }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1722
+ castShadow: true,
1723
+ position: [totalOpeningWidthM / 2 + sidesFrameWidthM / 2, sideFrameCenterY, 0],
1724
+ children: /*#__PURE__*/jsxRuntime.jsxs(csg.Geometry, {
1725
+ useGroups: true,
1726
+ children: [/*#__PURE__*/jsxRuntime.jsx(csg.Base, {
1727
+ name: "frame-base",
1728
+ material: allMaterials.frameMaterial,
1729
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1730
+ args: [sidesFrameWidthM, totalOpeningHeightM + topFrameWidthM, frameDepthM]
1731
+ })
1732
+ }), !["MXF_40", "MXF_50", "MXCAF_40", "MXCAF_50"].includes(frameType) && /*#__PURE__*/jsxRuntime.jsx(csg.Subtraction, {
1733
+ name: "cut-exterior",
1734
+ material: allMaterials.frameMaterial,
1735
+ position: [notchposition, 0, 0],
1736
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1737
+ args: [notchWidthM, totalOpeningHeightM + topFrameWidthM + 0.01, notchDepthM]
1738
+ })
1739
+ })]
1740
+ })
1741
+ }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1742
+ castShadow: true,
1743
+ position: [0, totalOpeningHeightM / 2 - doorStopWidthM / 2, doorStopPositionZ],
1744
+ material: allMaterials.doorStopMaterial,
1757
1745
  children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1758
- args: [totalOpeningWidthM - 0.03, gasketWidthM + 0.005, gasketDepthM]
1746
+ args: [totalOpeningWidthM, doorStopWidthM, doorStopDepthM]
1759
1747
  })
1760
1748
  }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1761
1749
  castShadow: true,
1762
- position: [leftGasketXPosition - 0.005, -0.005, gasketZPosition],
1763
- material: allMaterials.gasketMaterial,
1750
+ position: [-totalOpeningWidthM / 2 + doorStopWidthM / 2, 0, doorStopPositionZ],
1751
+ material: allMaterials.doorStopMaterial,
1764
1752
  children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1765
- args: [gasketWidthM + 0.005, totalOpeningHeightM - 0.02, gasketDepthM]
1753
+ args: [doorStopWidthM, totalOpeningHeightM, doorStopDepthM]
1766
1754
  })
1767
1755
  }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1768
1756
  castShadow: true,
1769
- position: [rightGasketXPosition + 0.005, -0.005, gasketZPosition],
1770
- material: allMaterials.gasketMaterial,
1757
+ position: [totalOpeningWidthM / 2 - doorStopWidthM / 2, 0, doorStopPositionZ],
1758
+ material: allMaterials.doorStopMaterial,
1771
1759
  children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1772
- args: [gasketWidthM + 0.005, totalOpeningHeightM - 0.02, gasketDepthM]
1760
+ args: [doorStopWidthM, totalOpeningHeightM, doorStopDepthM]
1773
1761
  })
1774
- })]
1775
- }), ["WDGF_WDG100", "WF_100", "WF_FLI"].includes(frameType) && /*#__PURE__*/jsxRuntime.jsxs("group", {
1776
- children: [/*#__PURE__*/jsxRuntime.jsxs("group", {
1762
+ }), frameType !== "WF_FLI" && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
1777
1763
  children: [/*#__PURE__*/jsxRuntime.jsx("mesh", {
1778
1764
  castShadow: true,
1779
- position: [0, totalOpeningHeightM / 2 - secondDoorStopWidthM / 2, secondDoorStopPositionZ],
1780
- material: allMaterials.doorStopMaterial,
1781
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1782
- args: [totalOpeningWidthM, secondDoorStopWidthM, secondDoorStopDepthM]
1783
- })
1784
- }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1785
- castShadow: true,
1786
- position: [-totalOpeningWidthM / 2 + secondDoorStopWidthM / 2, 0, secondDoorStopPositionZ],
1787
- material: allMaterials.doorStopMaterial,
1788
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1789
- args: [secondDoorStopWidthM, totalOpeningHeightM, secondDoorStopDepthM]
1790
- })
1791
- }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1792
- castShadow: true,
1793
- position: [totalOpeningWidthM / 2 - secondDoorStopWidthM / 2, 0, secondDoorStopPositionZ],
1794
- material: allMaterials.doorStopMaterial,
1795
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1796
- args: [secondDoorStopWidthM, totalOpeningHeightM, secondDoorStopDepthM]
1797
- })
1798
- })]
1799
- }), /*#__PURE__*/jsxRuntime.jsxs("group", {
1800
- children: [/*#__PURE__*/jsxRuntime.jsx("mesh", {
1801
- castShadow: true,
1802
- position: [0, secondTopGasketYPosition - 0.005, secondGasketZPosition],
1765
+ position: [0, topGasketYPosition, gasketZPosition],
1803
1766
  material: allMaterials.gasketMaterial,
1804
1767
  children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1805
1768
  args: [totalOpeningWidthM - 0.03, gasketWidthM + 0.005, gasketDepthM]
1806
1769
  })
1807
1770
  }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1808
1771
  castShadow: true,
1809
- position: [secondLeftGasketXPosition - 0.005, -0.01, secondGasketZPosition],
1772
+ position: [leftGasketXPosition - 0.005, -0.005, gasketZPosition],
1810
1773
  material: allMaterials.gasketMaterial,
1811
1774
  children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1812
- args: [gasketWidthM + 0.005, totalOpeningHeightM - 0.04, gasketDepthM]
1775
+ args: [gasketWidthM + 0.005, totalOpeningHeightM - 0.02, gasketDepthM]
1813
1776
  })
1814
1777
  }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1815
1778
  castShadow: true,
1816
- position: [secondRightGasketXPosition + 0.005, -0.01, secondGasketZPosition],
1779
+ position: [rightGasketXPosition + 0.005, -0.005, gasketZPosition],
1817
1780
  material: allMaterials.gasketMaterial,
1818
1781
  children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1819
- args: [gasketWidthM + 0.004, totalOpeningHeightM - 0.04, gasketDepthM]
1782
+ args: [gasketWidthM + 0.005, totalOpeningHeightM - 0.02, gasketDepthM]
1820
1783
  })
1821
1784
  })]
1822
- }), glassVisible && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
1785
+ }), ["WDGF_WDG100", "WF_100", "WF_FLI"].includes(frameType) && /*#__PURE__*/jsxRuntime.jsxs("group", {
1823
1786
  children: [/*#__PURE__*/jsxRuntime.jsxs("group", {
1824
- children: [["WDGF_WDG100", "WF_100"].includes(frameType) && /*#__PURE__*/jsxRuntime.jsx("mesh", {
1825
- castShadow: true,
1826
- position: [0, topFrameCenterY - secondDoorStopWidthM / 2, leftGlass_Z],
1827
- material: allMaterials.glassInfillMaterial,
1828
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1829
- args: [totalOpeningWidthM - 2 * secondDoorStopWidthM, topFrameWidthM + secondDoorStopWidthM, GlassPanelDepthM]
1830
- })
1831
- }), !["WDGF_WDG100", "WF_100"].includes(frameType) && /*#__PURE__*/jsxRuntime.jsx("mesh", {
1787
+ children: [/*#__PURE__*/jsxRuntime.jsx("mesh", {
1832
1788
  castShadow: true,
1833
- position: [0, topFrameCenterY, leftGlass_Z],
1834
- material: allMaterials.glassInfillMaterial,
1789
+ position: [0, totalOpeningHeightM / 2 - secondDoorStopWidthM / 2, secondDoorStopPositionZ],
1790
+ material: allMaterials.doorStopMaterial,
1835
1791
  children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1836
- args: [totalOpeningWidthM - 2 * secondDoorStopWidthM, topFrameWidthM, GlassPanelDepthM]
1792
+ args: [totalOpeningWidthM, secondDoorStopWidthM, secondDoorStopDepthM]
1837
1793
  })
1838
1794
  }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1839
1795
  castShadow: true,
1840
- position: [-totalOpeningWidthM / 2 - sidesFrameWidthM / 2 + secondDoorStopWidthM / 2, sideFrameCenterY, leftGlass_Z],
1841
- material: allMaterials.glassInfillMaterial,
1796
+ position: [-totalOpeningWidthM / 2 + secondDoorStopWidthM / 2, 0, secondDoorStopPositionZ],
1797
+ material: allMaterials.doorStopMaterial,
1842
1798
  children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1843
- args: [sidesFrameWidthM + secondDoorStopWidthM, totalOpeningHeightM + topFrameWidthM, GlassPanelDepthM]
1799
+ args: [secondDoorStopWidthM, totalOpeningHeightM, secondDoorStopDepthM]
1844
1800
  })
1845
1801
  }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1846
1802
  castShadow: true,
1847
- position: [totalOpeningWidthM / 2 + sidesFrameWidthM / 2 - secondDoorStopWidthM / 2, sideFrameCenterY, leftGlass_Z],
1848
- material: allMaterials.glassInfillMaterial,
1803
+ position: [totalOpeningWidthM / 2 - secondDoorStopWidthM / 2, 0, secondDoorStopPositionZ],
1804
+ material: allMaterials.doorStopMaterial,
1849
1805
  children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1850
- args: [sidesFrameWidthM + secondDoorStopWidthM, totalOpeningHeightM + topFrameWidthM, GlassPanelDepthM]
1806
+ args: [secondDoorStopWidthM, totalOpeningHeightM, secondDoorStopDepthM]
1851
1807
  })
1852
1808
  })]
1853
1809
  }), /*#__PURE__*/jsxRuntime.jsxs("group", {
1854
1810
  children: [/*#__PURE__*/jsxRuntime.jsx("mesh", {
1855
1811
  castShadow: true,
1856
- position: [0, topFrameCenterY, rightGlass_Z],
1857
- material: allMaterials.glassInfillMaterial,
1812
+ position: [0, secondTopGasketYPosition - 0.005, secondGasketZPosition],
1813
+ material: allMaterials.gasketMaterial,
1858
1814
  children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1859
- args: [totalOpeningWidthM, topFrameWidthM, GlassPanelDepthM]
1815
+ args: [totalOpeningWidthM - 0.03, gasketWidthM + 0.005, gasketDepthM]
1860
1816
  })
1861
1817
  }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1862
1818
  castShadow: true,
1863
- position: [-totalOpeningWidthM / 2 - sidesFrameWidthM / 2, sideFrameCenterY, rightGlass_Z],
1864
- material: allMaterials.glassInfillMaterial,
1819
+ position: [secondLeftGasketXPosition - 0.005, -0.01, secondGasketZPosition],
1820
+ material: allMaterials.gasketMaterial,
1865
1821
  children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1866
- args: [sidesFrameWidthM, totalOpeningHeightM + topFrameWidthM, GlassPanelDepthM]
1822
+ args: [gasketWidthM + 0.005, totalOpeningHeightM - 0.04, gasketDepthM]
1867
1823
  })
1868
1824
  }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1869
1825
  castShadow: true,
1870
- position: [totalOpeningWidthM / 2 + sidesFrameWidthM / 2, sideFrameCenterY, rightGlass_Z],
1871
- material: allMaterials.glassInfillMaterial,
1826
+ position: [secondRightGasketXPosition + 0.005, -0.01, secondGasketZPosition],
1827
+ material: allMaterials.gasketMaterial,
1872
1828
  children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1873
- args: [sidesFrameWidthM, totalOpeningHeightM + topFrameWidthM, GlassPanelDepthM]
1829
+ args: [gasketWidthM + 0.004, totalOpeningHeightM - 0.04, gasketDepthM]
1874
1830
  })
1875
1831
  })]
1832
+ }), glassVisible && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
1833
+ children: [/*#__PURE__*/jsxRuntime.jsxs("group", {
1834
+ children: [["WDGF_WDG100", "WF_100"].includes(frameType) && /*#__PURE__*/jsxRuntime.jsx("mesh", {
1835
+ castShadow: true,
1836
+ position: [0, topFrameCenterY - secondDoorStopWidthM / 2, leftGlass_Z],
1837
+ material: allMaterials.glassInfillMaterial,
1838
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1839
+ args: [totalOpeningWidthM - 2 * secondDoorStopWidthM, topFrameWidthM + secondDoorStopWidthM, GlassPanelDepthM]
1840
+ })
1841
+ }), !["WDGF_WDG100", "WF_100"].includes(frameType) && /*#__PURE__*/jsxRuntime.jsx("mesh", {
1842
+ castShadow: true,
1843
+ position: [0, topFrameCenterY, leftGlass_Z],
1844
+ material: allMaterials.glassInfillMaterial,
1845
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1846
+ args: [totalOpeningWidthM - 2 * secondDoorStopWidthM, topFrameWidthM, GlassPanelDepthM]
1847
+ })
1848
+ }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1849
+ castShadow: true,
1850
+ position: [-totalOpeningWidthM / 2 - sidesFrameWidthM / 2 + secondDoorStopWidthM / 2, sideFrameCenterY, leftGlass_Z],
1851
+ material: allMaterials.glassInfillMaterial,
1852
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1853
+ args: [sidesFrameWidthM + secondDoorStopWidthM, totalOpeningHeightM + topFrameWidthM, GlassPanelDepthM]
1854
+ })
1855
+ }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1856
+ castShadow: true,
1857
+ position: [totalOpeningWidthM / 2 + sidesFrameWidthM / 2 - secondDoorStopWidthM / 2, sideFrameCenterY, leftGlass_Z],
1858
+ material: allMaterials.glassInfillMaterial,
1859
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1860
+ args: [sidesFrameWidthM + secondDoorStopWidthM, totalOpeningHeightM + topFrameWidthM, GlassPanelDepthM]
1861
+ })
1862
+ })]
1863
+ }), /*#__PURE__*/jsxRuntime.jsxs("group", {
1864
+ children: [/*#__PURE__*/jsxRuntime.jsx("mesh", {
1865
+ castShadow: true,
1866
+ position: [0, topFrameCenterY, rightGlass_Z],
1867
+ material: allMaterials.glassInfillMaterial,
1868
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1869
+ args: [totalOpeningWidthM, topFrameWidthM, GlassPanelDepthM]
1870
+ })
1871
+ }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1872
+ castShadow: true,
1873
+ position: [-totalOpeningWidthM / 2 - sidesFrameWidthM / 2, sideFrameCenterY, rightGlass_Z],
1874
+ material: allMaterials.glassInfillMaterial,
1875
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1876
+ args: [sidesFrameWidthM, totalOpeningHeightM + topFrameWidthM, GlassPanelDepthM]
1877
+ })
1878
+ }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1879
+ castShadow: true,
1880
+ position: [totalOpeningWidthM / 2 + sidesFrameWidthM / 2, sideFrameCenterY, rightGlass_Z],
1881
+ material: allMaterials.glassInfillMaterial,
1882
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1883
+ args: [sidesFrameWidthM, totalOpeningHeightM + topFrameWidthM, GlassPanelDepthM]
1884
+ })
1885
+ })]
1886
+ })]
1876
1887
  })]
1877
1888
  })]
1878
- })]
1879
- }), interiorFanlight.visible && /*#__PURE__*/jsxRuntime.jsx("mesh", {
1880
- position: [0, interiorFanlightYPosition, doorCenterZ],
1881
- castShadow: true,
1882
- material: allMaterials.interiorFanlightMaterial,
1883
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1884
- args: [totalOpeningWidthM, interiorFanlightHeightM, doorDepthM]
1885
- })
1886
- }), doorInstances.map(instance => /*#__PURE__*/jsxRuntime.jsx(DoorLeaf, {
1887
- pivot: instance.pivot,
1888
- xOffset: instance.x,
1889
- materials: allMaterials
1890
- }, instance.key))]
1891
- })
1892
- });
1889
+ }), interiorFanlight.visible && /*#__PURE__*/jsxRuntime.jsx("mesh", {
1890
+ position: [0, interiorFanlightYPosition, doorCenterZ],
1891
+ castShadow: true,
1892
+ material: allMaterials.interiorFanlightMaterial,
1893
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1894
+ args: [totalOpeningWidthM, interiorFanlightHeightM, doorDepthM]
1895
+ })
1896
+ }), doorInstances.map(instance => /*#__PURE__*/jsxRuntime.jsx(DoorLeaf, {
1897
+ pivot: instance.pivot,
1898
+ xOffset: instance.x,
1899
+ materials: allMaterials
1900
+ }, instance.key))]
1901
+ })]
1902
+ }) // CHANGE END: Close the new parent group
1903
+ );
1893
1904
  }
1894
1905
 
1895
1906
  // {