I3DRect¶
- class I3DRect¶
Bases:
ImpactCOMWrapperBase- Summary:
Respresents a rectangular cuboid in 3D.
- Remarks:
A 3D “box” aligned with the X, Y and Z axes. These objects can be used to describe the extents of an instance in a 3D scene. You can use i3_d_creator.rect3_d to create a new i3_d_rect object. Introduced in Impact 12.0.0.136
Wraps a COM object or another wrapper instance. Accepts: - A valid impact_object - An existing impact_com_wrapper_base-derived instance
- property center¶
Gets Center.
- Summary:
Gets the centre point of the rectangular cuboid.
- Returns:
The value of Center.
- Return type:
center (i3_d_vector)
- property depth¶
Gets Depth.
- Summary:
Gets and sets the depth of the rectangular cuboid.
- Returns:
The value of Depth.
- Return type:
depth (float)
- property height¶
Gets Height.
- Summary:
Gets and sets the height of the rectangular cuboid.
- Returns:
The value of Height.
- Return type:
height (float)
- property max¶
Gets Max.
- Summary:
Gets and sets the 3D vector specifying the maximum corner of the cubiod.
- Returns:
The value of Max.
- Return type:
max (i3_d_vector)
- property min¶
Gets Min.
- Summary:
Gets and sets the 3D vector specifying the minimum corner of the cubiod.
- Returns:
The value of Min.
- Return type:
min (i3_d_vector)
- property width¶
Gets Width.
- Summary:
Gets and sets the width of the rectangular cuboid.
- Returns:
The value of Width.
- Return type:
width (float)
- assign(source)¶
- Summary:
Assigns the properties of another i3_d_rect object to this one.
- Parameters:
source (i3_d_rect) – The object from which to copy the properties.
- isNone()¶
Checks if the COM object is None. This is useful for determining if the wrapper has been initialized with a valid COM object.
- to_string()¶
- Summary:
Returns a string representation of the i3_d_rect.