Skip to content

Custom geometry made up from several geometries. #89

Answered by jmirtsch
stromhaug-tommy asked this question in Q&A
Discussion options

You must be logged in to vote

Rather than create multiple representation maps, create a single representation map with multiple breps in the shape representation if an element geometry comprises multiple shapes. See if this makes sense.

		List<IfcFacetedBrep> breps = new List<IfcFacetedBrep>();
		foreach (ComponentOccurrence compOcc in occurencences)
		{

			if (!compOcc.Suppressed)
			{
				if (!(compOcc.DefinitionDocumentType == DocumentTypeEnum.kPartDocumentObject))
				{
					continue;
				}

				PartDocument pd = compOcc.Definition.Document as PartDocument;

				SaveSTL(pd, inventorApp);

				List<IfcFace> facesShell = GetFaceaForPart(db);

				IfcClosedShell cs = new IfcClosedShell(facesShell);

				IfcFacetedBr…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@stromhaug-tommy
Comment options

Answer selected by stromhaug-tommy
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