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

Caching IfcProductRepresentation #291

Open
ahmetbekcan opened this issue Jan 24, 2025 · 0 comments
Open

Caching IfcProductRepresentation #291

ahmetbekcan opened this issue Jan 24, 2025 · 0 comments

Comments

@ahmetbekcan
Copy link

Hi, I have a question about the function hasBooleanOperations. As I understand it, this function checks whether an IfcProductRepresentation includes boolean operations, and if it doesn’t, you intend to cache it (it isn't implemented yet). However, I’m not fully clear on why the presence of boolean operations prevents caching the geometric representation of the object.

Wouldn’t all elements using this representation be affected similarly by the boolean operations? Couldn’t we still cache it as long as the object itself doesn’t have openings declared via hasOpenings_inverse (for IfcElement)?

The part I’m referring to is in GeometryConverter.h at line 1084:

bool hasBoolOps = RepresentationConverter::hasBooleanOperations(product_representation);
if (!hasBoolOps)
{
	// TODO: cache items
}

I would appreciate if you let me know if I’m misunderstanding something. Thanks in advance for your help!

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