SectionPlane (hwx.inspire)#
- class SectionPlane(**kwds)#
Bases:
Named
Creates and view a 2D section planes from the model.
# Name
Type
Example
from hwx import inspire model = inspire.newModel() part = model.createSolidBlock() sectionPlane1 = inspire.SectionPlane() sectionPlane1.visible = True print("INITIAL SECTION PLANE PROPERTIES:") print("") print("Section Plane normal: " + str(sectionPlane1.normal)) print("Section Plane distance: " + str(sectionPlane1.distance)) print("Section Plane location: " + str(sectionPlane1.location)) print("Section Plane thickness: " + str(sectionPlane1.thickness)) sectionPlane1.normal = (0, 1, 1) sectionPlane1.distance = 0 sectionPlane1.location = (0, 0, 0.75) sectionPlane1.thickness = 0.1 print("SECTION PLANE PROPERTIES AFTER MODFICATION:") print("") print("Section Plane normal: " + str(sectionPlane1.normal)) print("Section Plane distance: " + str(sectionPlane1.distance)) print("Section Plane location: " + str(sectionPlane1.location)) print("Section Plane thickness: " + str(sectionPlane1.thickness)) inspire.orientView(direction="isometric")
- property equation#
List of four float values, as an equation to the section plane describing:
The location of the of the plane.
The orientation of the plane.
The normal of the plane.
The distance from origin to plane along normal.
- property normal#
Sets the normal of the plane.
- property distance#
Returns and sets the distance from origin to plane along normal.
- property location#
Returns and sets the intersection location of plane and plane normal passing through origin.
- property thickness#
Returns and sets the thickness of the sectional plane.
- property displayMode#
Returns and sets the display mode of the section plane.
The available graphic display modes are “Above”, “Below” or “Both”.
Graphics above, below or above & below will be hidden.