Skip to content
New issue

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

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

Already on GitHub? # to your account

Merge does not merge #437

Closed
Fabrice3D opened this issue Nov 21, 2012 · 1 comment
Closed

Merge does not merge #437

Fabrice3D opened this issue Nov 21, 2012 · 1 comment
Assignees
Labels

Comments

@Fabrice3D
Copy link
Member

var tmpmesh1:Mesh = new Mesh(new PlaneGeometry(500, 500, 2,2));
trace("vertices: "+tmpmesh1.geometry.subGeometries[0].vertexData.length);
var tmpmesh2:Mesh = new Mesh(new PlaneGeometry(500, 500, 2,2));
trace("vertices: "+tmpmesh2.geometry.subGeometries[0].vertexData.length);

var mesh:Mesh = new Mesh(new PlaneGeometry(500, 500, 2,2));
trace("vertices: "+mesh.geometry.subGeometries[0].vertexData.length);

var merge:Merge = new Merge(true, true, false );
merge.apply(mesh, tmpmesh1);
merge.apply(mesh, tmpmesh2);

trace("subgeometries found: "+mesh.geometry.subGeometries.length);

trace(mesh.geometry.subGeometries[0].vertexData.length);
trace(mesh.geometry.subGeometries[1].vertexData.length);
trace(mesh.geometry.subGeometries[2].vertexData.length);

there should be only 1 subgeometry only holding all vertices.

@ghost ghost assigned richardolsson Nov 21, 2012
rob-bateman added a commit that referenced this issue Feb 26, 2013
@rob-bateman
Copy link
Member

fixed in dev commit 15cfc75

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants