IBezier¶
- class IBezier¶
Bases:
IEntity- Description:
Represents a bezier entity.
Wraps a COM object or another wrapper instance. Accepts: - A valid impact_object - An existing impact_com_wrapper_base-derived instance
- property bevel_side¶
Gets bevel_side.
- Returns:
The value of bevel_side.
- Return type:
- property bridges¶
Gets Bridges.
- Description:
Gets an IBridges collection representing all the bridges on this bezier.
- property channel_offset_against¶
Gets channel_offset_against.
- Returns:
The value of channel_offset_against.
- Return type:
channel_offset_against (float)
- property channel_offset_with¶
Gets channel_offset_with.
- Returns:
The value of channel_offset_with.
- Return type:
channel_offset_with (float)
- property combination_end_mode¶
Gets combination_end_mode.
- Returns:
The value of combination_end_mode.
- Return type:
- property combination_palette1_is_main¶
Gets combination_palette1_is_main.
- Returns:
The value of combination_palette1_is_main.
- Return type:
combination_palette1_is_main (bool)
- property control1¶
Gets Control1.
- Description:
Sets and gets the first control point of the bezier.
- property control2¶
Gets Control2.
- Description:
Sets and gets the second control point of the bezier.
- property control3¶
Gets Control3.
- Description:
Sets and gets the third control point of the bezier.
- property control4¶
Gets Control4.
- Description:
Sets and gets the fourth control point of the bezier.
- property direction_locked¶
Gets direction_locked.
- Description:
Indicates if the direction of the bezier is locked.
- Remarks:
If direction_locked is TRUE the direction will not be affected by tools such as Transform Switch, the Arrange tools and the Plot tool.
- Returns:
The value of direction_locked.
- Return type:
direction_locked (bool)
- property display_palette_text¶
Gets display_palette_text.
- Description:
Determines whether palette text is visible or hidden.
- Remarks:
Note that the behaviour of palette text also depends on the palette properties and on the user’s visibility settings. Introduced in Impact 6.4.0.10 and 7.0.0.38.
- Returns:
The value of display_palette_text.
- Return type:
display_palette_text (bool)
- Examples:
Display palette text
- property end¶
Gets End.
- Description:
Gets or sets the end point of the bezier.
- Remarks:
Equivalent to Control1
- property fold_data¶
Gets fold_data.
- Description:
Returns an IFoldData object representing the folding data for this entity.
- Remarks:
Introduced in Impact 11.0.0.10.
- property holding_bridge_side¶
Gets holding_bridge_side.
- Returns:
The value of holding_bridge_side.
- Return type:
- property length¶
Gets Length.
- Description:
Gets or sets the length of the bezier.
- Returns:
The value of Length.
- Return type:
length (float)
- property rule_height¶
Gets rule_height.
- Returns:
The value of rule_height.
- Return type:
rule_height (float)
- property start¶
Gets Start.
- Description:
Gets or sets the start point of the bezier.
- Remarks:
Equivalent to Control4
- property zipper_side¶
Gets zipper_side.
- Returns:
The value of zipper_side.
- Return type:
- add_bridge(start, width)¶
- Description:
Adds a bridge to the bezier.
- Parameters:
start (IVector) – Specifies the start of the bridge.
width (float) – Specifies the width of the bridge.
- clear_bridges()¶
- Description:
Removes all bridges.
- extend(length, from_start)¶
- Description:
Extends the bezier by a given amount from either the start or the end.
- Parameters:
length (float) – The length of the extension.
from_start (bool) – If from_start is TRUE the bezier is extended from its start point otherwise it is extended from its end point.
- get_along(distance_along)¶
- Description:
Returns a point along the line.
- Parameters:
distance_along (float) – A value between 0 and 1 inclusive that represents the point along the entity that is required.
- get_direction_along(point)¶
- get_nearest_along(point)¶
- intersect_axis(origin, direction, matrix)¶
- intersect_entity(other, type)¶
- Description:
Gets an array of vectors representing the intersection points between this entity and another.
- Parameters:
other (IEntity) – Specifies the other entity.
type (ipIntersectType) – Dictates whether the entities are to be considered as finite segments or infinitely long.
- parameter_along(point, height)¶
- Description:
This method determines a parameter value representing the proportion along the bezier by the specified point.
- Parameters:
point (IVector) – A point on the bezier.
height (any) – The perpendicular distance from the bezier if point is not on the bezier.
- Examples:
- split_at_point(point)¶
- Description:
Splits the bezier into two separate beziers.
- Remarks:
The original bezier is made equal to the first section of the split bezier and the other section is returned by this method. If the point specified is not on the bezier or is equal to the start or end of the bezier this method will fail.
- Returns:
A new IBezier object created as a result of splitting the existing bezier.
- Parameters:
point (IVector) – Specifies the point at which the bezier should be split.
- Examples: