Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Rizzutp · Dec 12, 2019 at 06:09 PM · meshplanegeometry

How to find symmetry plane of an object

Hello. I need a script able to find the symmetry of a given object inside the Unity 3D space.

The idea is the following (I simply drawn a plane wich divides in half a car, just to give an hint): alt text

Any idea on how to do this? I would like to exploit the points of the mesh and check wether each point has a simmetrical counterpart.

symmetry-plane.png (382.8 kB)
Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image elenzil · Dec 13, 2019 at 07:23 PM 2
Share

this is a pretty non-trivial problem.

one approach might be to try to identify the points farthest from the object origin, and do reasoning about those. in the simple case there would be only two, but there could be an arbitrary number, which makes it difficult.

avatar image WheresMommy · Dec 14, 2019 at 06:31 AM 1
Share

How should a script know what symmetry you mean? There are 3 ways at least. You could ho from the center point but still it depends on the model. Reflecting the vertices to check the opposite might work but you might an origin

avatar image Rizzutp WheresMommy · Dec 21, 2019 at 01:24 PM 0
Share

$$anonymous$$aybe an idea could be to divide in half the 3D Bounding Box of an object. I had alreay implemented AABB in my project. Is this a good plan, according to your opinion?

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by elenzil · Dec 21, 2019 at 04:52 PM

what assumptions can you make about the objects ?

it sounds like:

  1. has at least one symmetry plane.

but what about these ?

  1. is already centered on the local origin ?

  2. the symmetry plane is the same as one of the coordinate planes ? eg, xy, yz, or zx.

  3. the symmetry plane is known to be one of the coordinate planes, eg yz.

i assume 3) is not true, since that's your question. if 1) is not true, it's easy to center it yourself. just compute the average vertex position and subtract that from each vertex. if 2) is true, the problem seems trivial.

if 2) is not true, the problem is very non-trivial.

what is AABB ? oh axis aligned bb. i have to admit i don't understand your suggestion.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

133 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Detecting object inside an area. 1 Answer

Number of mesh vertices increase when imported into unity 1 Answer

Problems importing plane mesh from blender to unity 1 Answer

Rendering Issue 1 Answer

How to achieve a rotation on "batch quads" ? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges