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

Extrude plane mesh #126

Closed
vibra2020 opened this issue Dec 29, 2019 · 0 comments
Closed

Extrude plane mesh #126

vibra2020 opened this issue Dec 29, 2019 · 0 comments

Comments

@vibra2020
Copy link

Hi,
i want to use extrude function, when i did it on a plane mesh, its extruding with 1 meter height, but i want to change the height to custom value, when i am trying that its still use the same default value - 1 meter.

              mesh3 = g3UnityUtils.UnityMeshToDMesh( hit.transform.gameObject.GetComponent<MeshFilter>().sharedMesh);

                MeshExtrudeMesh mem = new MeshExtrudeMesh(mesh3);
                mem.ExtrudedPositionF (new Vector3d(hit.transform.position.x, hit.transform.position.y + 4f, hit.transform.position.z), (Vector3f) Vector3.up, 0);

                mem.Extrude();

is it right? correct me please.
Thanks.

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

No branches or pull requests

1 participant