Hi
had trouble understanding how to get the area of curve - found an example for a brep volume in the primer but it seems to work differently than for curves
I did the following:
For Each crv As oncurve In x
Dim centroid As New on3dpoint
Dim normal As New On3dVector
Dim cMass As New OnMassProperties
Dim area As New Double
crv.AreaMassProperties(centroid, normal, cMass)
area = cMass.Area()
print(area)
Next
but the areas are coming out as 0...
I feel like it's because I need to be giving the centre and normal vectors but I don't know these offhand - I assumed that these sorts of things are generated by the method. Any ideas?
Tags: