Point (hwx.inspire.geometry)#

class Point(features, positionType, ratio=0.5)#

Bases: BaseSystem

Reference Point can be used to create or modify geometry.

__new__(cls, features, positionType, ratio=0.5)#

Create a reference point. :param features: Features to create a reference point. :type features: list[Feature] | math.Point :param positionType: Position Type.

  • AT_VERTEX

  • COORDINATES

  • BETWEEN_TWO_POINTS

  • ON_EDGE

  • CENTER_OF_CIRCLE

Parameters:

ratio (float | str) – Applicable for BetweenTwoPoints and OnCurve/Edge Method. Variable is passed as string.

Example

from hwx import inspire

model = inspire.newModel()
model.createSolidBlock()
feature = model.getFeatures(type="FeaturePoint")[0]
inspire.geometry.Point(feature, "AT_VERTEX")
print("Reference Point has been created by AT_VERTEX method")
inspire.orientView(direction="isometric")