SectionPlane (hwx.inspire)#

class SectionPlane(**kwds)#

Bases: Named

Creates and view a 2D section planes from the model.

Attribute Table#

Name

Type

displayMode

Enum

distance

Double

equation

List

location

Location

normal

Direction

thickness

Double

Example

The result of a section cut operation.#
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:

  1. The location of the of the plane.

  2. The orientation of the plane.

  3. The normal of the plane.

  4. 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.