FeaturePoint (hwx.inspire)#

class FeaturePoint(*args)#

Bases: Feature

Features that are points.

They are not created through the API but can be retrieved from a part.

Method Table#

Name

Description

getConnectionPoints (self, uslices=None, vslices=None)

Returns a list of points that can be used to visualize how the feature

isTouching (self, point)

Determines the point overlap.

Example

from hwx import inspire

model = inspire.newModel()
sheet = model.createSheetRectangle()
inspire.orientView(direction="isometric")

features = sheet.features
points = [x for x in features if isinstance(x, inspire.FeaturePoint)]
print("Sheet has " + str(len(points)) + " points")
for point in points:
   print("One point located at: " + str(point.location))
getConnectionPoints(uslices=None, vslices=None)#

Returns a list of points that can be used to visualize how the feature is connected (spider points).

Parameters:
  • uslices (int) – Number of slices in u-direction.

  • vslices (int) – Number of slices in v-direction.

Returns:

Points that can be used to visualize how the

feature is connected.

Return type:

list[Point]

isTouching(point)#

Determines the point overlap.

Parameters:

point (Point) – point position x,y,z.