Edge¶
Declaration¶
- class declaracad.occ.draw.Edge(parent=None, **kwargs)[source]¶
Bases:
Shape
An Edge is a base class for Lines and Wires.
- Attributes:
- activated
- as_wire
- axis
- bbox
- children
- color
- constructed
- description
- destroyed
- direction
- display
- initialized
- is_destroyed
- is_initialized
- line_color
- line_style
- line_width
- material
- name
- parent
- position
- proxy
- proxy_is_active
- reverse
- rotation
- solve
- surface
- texture
- tolerance
- topology
- transparency
- wireframe_line_color
- x
- y
- z
Methods
activate_bottom_up
()Initialize the proxy on the bottom-up activation pass.
activate_proxy
()Activate the proxy object tree.
activate_top_down
()Initialize the proxy on the top-down activation pass.
child_added
(child)A reimplemented child added event handler.
child_moved
(child)A method invoked when a child is moved in the object.
child_removed
(child)A reimplemented child removed event handler.
destroy
()A reimplemented destructor.
find
(name[, regex])Find the first object in the subtree with the given name.
find_all
(name[, regex])Find all objects in the subtree with the given name.
freeze
Freeze the atom to prevent further modifications to its attributes.
get_member
Get the named member for the atom.
get_value_at
(t[, derivative])Get the value of the curve derivative at t.
has_observer
Get whether the atom has the given observer for a given topic.
has_observers
Get whether the atom has observers for a given topic.
initialize
()A reimplemented initializer.
insert_children
(before, insert)Insert children into this object at the given location.
members
()Get the members dictionary for the type.
notifications_enabled
Get whether notification is enabled for the atom.
notify
Call the registered observers for a given topic with positional and keyword arguments.
observe
Register an observer callback to observe changes on the given topic(s).
parent_changed
(old, new)A method invoked when the parent of the object changes.
render
()Generates and returns the actual shape from the declaration.
root_object
()Get the root object for this hierarchy.
set_notifications_enabled
Enable or disable notifications for the atom.
set_parent
(parent)Set the parent for this object.
suppress_notifications
()Disable member notifications within in a context.
traverse
([depth_first])Yield all of the objects in the tree, from this object down.
traverse_ancestors
([root])Yield all of the objects in the tree, from this object up.
unobserve
Unregister an observer callback for the given topic(s).
line_style
- as_wire¶
If True, convert the edge into a wire
- get_value_at(t: float, derivative: int = 0)[source]¶
Get the value of the curve derivative at t. If the edge has no internal parametric curve representation this will throw an error.
- Returns:
- value: Tuple or Float
- line_style¶
Style for line
- line_width¶
Line width style
- proxy¶
Reference to the implementation control
- reverse¶
Reverse
- solve¶
Solver parameters When given these will be use to solve for inputs to the shape
- surface¶
The parametric surface to wrap this edge on
No implementation found