Skip to content

Geometry class refactoring to increase type-safety#43

Open
YasharSL wants to merge 4 commits intobrunosimon:masterfrom
YasharSL:Refactor-Increase-type-safety
Open

Geometry class refactoring to increase type-safety#43
YasharSL wants to merge 4 commits intobrunosimon:masterfrom
YasharSL:Refactor-Increase-type-safety

Conversation

@YasharSL
Copy link

@YasharSL YasharSL commented Jan 23, 2024

AreaFloorBorderGeometry
AreaFenceGeometry

  • This refactor follows the latest Threejs patterns
  • Property parameters does not exist on BufferGeometry and returning a BoxGeometry in the constructor causes incorrect type exporting.
  • The previous code will throw an error in TypeScript

- Property `parameters` does not exist on `BufferGeometry` and returning a `BoxGeometry` in the constructor causes incorrect type exporting.
- The previous code will throw an error in TypeScript
@YasharSL YasharSL marked this pull request as draft January 23, 2024 09:50
YasharSL and others added 2 commits May 24, 2025 14:10
- Property `parameters` does not exist on `BufferGeometry` and returning a `BoxGeometry` in the constructor causes incorrect type exporting.
- The previous code will throw an error in TypeScript
…olio-2019 into Refactor-Increase-type-safety
@YasharSL YasharSL closed this May 24, 2025
…ype-safety

- Updated `AreaFenceGeometry` to extend `THREE.BufferGeometry` for better integration with Three.js.
- This follows latest Threejs recommendations
@YasharSL YasharSL reopened this May 24, 2025
@YasharSL YasharSL changed the title refactoring to increase type-safety Geometry class refactoring to increase type-safety May 24, 2025
@YasharSL YasharSL marked this pull request as ready for review May 24, 2025 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant