xBimTeam / XbimWindowsUI

The home of XbimXplorer and WPF components for your desktop BIM applications.
Other
252 stars 149 forks source link

How to make Hiding Instances faster in the DrawingControl3D #203

Open AHSss opened 1 year ago

AHSss commented 1 year ago

Hi~! @andyward

I want to hide the instances in the window of DrawingControl3D . I made the following attempt: First I add the DrawingControl's EntitySelections to the HiddenInstances . Then I used the Method-ReloadModel() . Here is my code:

 DrawingControl.HiddenInstances = EntitySelections.ToList();
 DrawingControl.ReloadModel(DrawingControl3D.ModelRefreshOptions.ViewPreserveCameraPosition);

When the model is small ,the instances I selected was by hidden fast . But When the model is bigger , the instances I selected hidden became slowly . I think maybe the problem is the Method-ReloadModel() Executed slowly becuase of my model is too big . OR I used the Unsuitable parameters of the Method-ReloadModel() . And are there other quick ways to implement entity hiding? I need your help~!

andyward commented 1 year ago

Probably best bringing @CBenghi in on this as he's more familiar with the Helix/3D batching