Skip to content

how to stitch two mesh closed mesh A and closed Mesh B #4511

Answered by Grantim
JihoKang24 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello!
Repair with this settings just fills small holes.
Could you please share your files so we would be able to suggest you anything (you can share files on support@meshinspector.com if you don't want to upload them publicly)


P.S.
In your code sample you actually do not use fill hole settings

	FillHoleNicelySettings fillHoleSettings; // not used
	{
		fillHoleSettings.triangulateOnly = false;
		fillHoleSettings.triangulateParams.metric = getComplexStitchMetric(mesh);
	}

Also, this code do nothing:

	FaceBitSet fsLargest = MeshComponents::getLargestComponent(mesh);
	mesh = MeshPart(mesh, &fsLargest).mesh; // do nothing

If you want to keep only largest component you should do it like this:

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@JihoKang24
Comment options

@JihoKang24
Comment options

@Grantim
Comment options

Answer selected by JihoKang24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants