Description This command retrieves the number of sampled entries in a sampled random surface normal surface roughness model.
Syntax sampCnt = SurfRoughSRSNGetEntryCount( roughNode )
Parameters sampCnt (Long) Number of sampled entries in the roughness model being queried.
roughNode As Long Node number of the sampled random surface normal roughness model being queried.
Example The following example loops over the valid sampled random surface normal roughness models and prints their name followed by the sampled angle and probability values.
Sub Main
Dim roughCount As Long, curRough As Long Dim angs() As Double, probs() As Double, ii As Long For curRough = SurfRoughGetMaxNodeNum To 0 Step -1 If SurfRoughIsValidNode( curRough ) Then If SurfRoughGetType( curRough ) = "SampRanNorm" Then Print SurfRoughGetName( curRough ) Print Chr(9) & "Ang.(deg)" & Chr(9) & "Prob." SurfRoughSRSNGetEntries( curRough, angs(), probs() ) For ii = 0 To SurfRoughSRSNGetEntryCount( curRough )-1 Print Chr(9) & angs(ii) & Chr(9) & probs(ii) Next ii End If End If Next curRough
End Sub
See Also SurfRoughSRSNGetIthProbability SurfRoughSRSNGetOverallRoughnessProbability SurfRoughSRSNSetOverallRoughnessProbability
|