Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

selection filter

john4TMYX
Enthusiast

selection filter

john4TMYX
Enthusiast
Enthusiast

Hi guys,

 

I use the following way to add the selection filter:

 

selectInput->addSelectionFilter(SelectionCommandInput::Faces);
selectInput->addSelectionFilter(SelectionCommandInput::MeshBodies);
selectInput->setSelectionLimits(1, 0);

 

Is it the right way?

 

But my codes always crashes when adding "MeshBodies".

 

Regards

John

 

 

 

0 Likes
Reply
Accepted solutions (1)
243 Views
1 Reply
Reply (1)

john4TMYX
Enthusiast
Enthusiast
Accepted solution

selectInput->addSelectionFilter("Faces");
selectInput->addSelectionFilter("MeshBodies");

is the right way

1 Like