Varian-Code-Samples icon indicating copy to clipboard operation
Varian-Code-Samples copied to clipboard

Constructor for SearchBodyParameters?

Open tkstevens opened this issue 2 years ago • 1 comments

I want to use the StructureSet.CreateAndSearchBody method, but I can't figure out how to construct the SearchBodyParameters input. Anyone have a snippet to help? Thanks.

tkstevens avatar Sep 21 '21 14:09 tkstevens

Hi there,

like this:

var parameters = context.StructureSet.GetDefaultSearchBodyParameters(); parameters.LowerHUThreshold = -300; parameters.KeepLargestParts = false; parameters.NumberOfLargestPartsToKeep = 1; parameters.PreDisconnect = false; parameters.FillAllCavities = true; parameters.PreCloseOpenings = false; parameters.Smoothing = true; parameters.SmoothingLevel = 1; Structure newBody = context.StructureSet.CreateAndSearchBody(parameters);

brjdenis avatar Oct 07 '21 06:10 brjdenis