Skip to content

Commit

Permalink
update three-bvh-csg (#22)
Browse files Browse the repository at this point in the history
* chore: update three-bvh-csg

* changelog
  • Loading branch information
Sam-Apostel authored Jul 11, 2023
1 parent 9b85061 commit 206f8d3
Show file tree
Hide file tree
Showing 6 changed files with 220 additions and 145 deletions.
6 changes: 3 additions & 3 deletions .storybook/stories/advanced/MultipleMaterials.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ export const MultipleMaterials = () => {
<mesh>
<Geometry useGroups>
<Base>
<boxBufferGeometry args={[2, 2, 2]} />
<boxGeometry args={[2, 2, 2]} />
<meshStandardMaterial color="orange" />
</Base>
<Subtraction position={[0.5, 0.5, 0.5]}>
<sphereBufferGeometry args={[0.65, 64, 64]} />
<sphereGeometry args={[0.65, 64, 64]} />
<meshNormalMaterial />
</Subtraction>
<Addition position={[-0.5, -0.5, -0.5]}>
<sphereBufferGeometry args={[1, 64, 64]} />
<sphereGeometry args={[1, 64, 64]} />
<meshNormalMaterial />
</Addition>
</Geometry>
Expand Down
4 changes: 2 additions & 2 deletions .storybook/stories/advanced/Updating.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ const UpdatingExample = () => {
<mesh>
<Geometry ref={csg}>
<Base position={[0, 0, -0.5]} ref={base}>
<boxBufferGeometry args={[1, 1, 1]} />
<boxGeometry args={[1, 1, 1]} />
</Base>
<Subtraction>
<sphereBufferGeometry args={[0.45, 64, 64]} />
<sphereGeometry args={[0.45, 64, 64]} />
</Subtraction>
</Geometry>
<meshNormalMaterial />
Expand Down
4 changes: 2 additions & 2 deletions .storybook/stories/operations/Addition.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ export const Basic = () => (
<mesh>
<Geometry>
<Base position-z={0.5}>
<boxBufferGeometry args={[1, 1, 1]} />
<boxGeometry args={[1, 1, 1]} />
</Base>
<Addition position-z={-0.5}>
<sphereBufferGeometry args={[1, 64, 64]} />
<sphereGeometry args={[1, 64, 64]} />
</Addition>
</Geometry>
<meshNormalMaterial />
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @react-three/fiber

## 3.0.0

### Major Changes

- a0eb3053: chore: update three-bvh-csg

## 2.2.0

### Minor Changes
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-three/csg",
"version": "2.2.0",
"version": "3.0.0",
"description": "Constructive solid geometry for React",
"main": "dist/index.cjs",
"module": "dist/index.js",
Expand Down Expand Up @@ -53,8 +53,8 @@
"@babel/preset-typescript": "^7.16.0",
"@changesets/changelog-git": "^0.1.12",
"@changesets/cli": "^2.24.3",
"@react-three/drei": "^9.22.4",
"@react-three/fiber": "^8.2.0",
"@react-three/drei": "^9.78.1",
"@react-three/fiber": "^8.13.4",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-node-resolve": "^13.0.6",
"@storybook/addon-actions": "^6.5.10",
Expand All @@ -71,7 +71,7 @@
"@types/react": "^17.0.33",
"@types/react-dom": "^17.0.10",
"@types/react-test-renderer": "^17.0.1",
"@types/three": "^0.141.0",
"@types/three": "^0.153.0",
"@typescript-eslint/eslint-plugin": "^5.3.0",
"@typescript-eslint/parser": "^5.3.0",
"babel-loader": "^8.2.5",
Expand All @@ -92,11 +92,11 @@
"rollup": "^2.59.0",
"rollup-plugin-size-snapshot": "^0.12.0",
"rollup-plugin-terser": "^7.0.2",
"three": "^0.142.0",
"three": "^0.154.0",
"typescript": "^4.4.4"
},
"homepage": "https://github.com/pmndrs/react-three-csg#readme",
"dependencies": {
"three-bvh-csg": "^0.0.5"
"three-bvh-csg": "^0.0.8"
}
}
Loading

1 comment on commit 206f8d3

@vercel
Copy link

@vercel vercel bot commented on 206f8d3 Jul 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.