Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor: update Sidebar.Geometry.ExtrudeGeometry.js #28373

Merged
merged 1 commit into from
May 14, 2024

Conversation

linbingquan
Copy link
Contributor

Related issue: #XXXX

Description

  1. Fixed ShapeGeometry Extrude to ExtrudeGeometry depth value error.

图片

  1. Fixed bevel rows does not update, when toggle ExtrudeGeometry.bevelEnabled.
Before After
图片 图片
  1. Fixed SetGeometryCommand does not get thickness value.

Comment on lines +144 to 147
bevelThickness: thickness !== undefined ? thickness.getValue() : options.bevelThickness,
bevelSize: size !== undefined ? size.getValue() : options.bevelSize,
bevelOffset: offset !== undefined ? offset.getValue() : options.bevelOffset,
bevelSegments: segments !== undefined ? segments.getValue() : options.bevelSegments
Copy link
Contributor Author

Choose a reason for hiding this comment

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

If the PR is accepted, this part of the code should not require a judgment statement.

@Mugen87
Copy link
Collaborator

Mugen87 commented May 14, 2024

ExtrudeGeometry support was added in #16468 but I wonder how to test this PR. There is no option to add an extruded mesh from the UI.

Do you mind sharing a JSON (Object/Scene Format) that holds an extruded mesh? The import via ObjectLoader should work.

@linbingquan
Copy link
Contributor Author

ExtrudeGeometry support was added in #16468 but I wonder how to test this PR. There is no option to add an extruded mesh from the UI.

Do you mind sharing a JSON (Object/Scene Format) that holds an extruded mesh? The import via ObjectLoader should work.

I was use svg file test it.

<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30">
    <rect x="0" y="0" width="30" height="30" fill="red" />
</svg>

@Mugen87 Mugen87 merged commit 7e74aa5 into mrdoob:dev May 14, 2024
11 checks passed
@Mugen87 Mugen87 added this to the r165 milestone May 14, 2024
@linbingquan linbingquan deleted the dev-editor-extrude-geometry branch May 17, 2024 10:50
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.

2 participants