-
Notifications
You must be signed in to change notification settings - Fork 3
PolySurface
Represents a compound surface consisting of multiple connected surfaces.
PolySurface is a geometric entity that represents a complex surface made up of several simpler surfaces. These simpler surfaces are typically connected along their edges. Attributes include an ID and type, with functionalities to manipulate and query the composite surface structure.
- `id` (str): A unique identifier for the PolySurface.
- `type` (str): Class name, "PolySurface".
-
__id__(self) -> str
: Returns the unique identifier of the PolySurface object. Similar to the NurbsSurface, this method provides the unique ID of the PolySurface, facilitating its identification and tracking across various operations or within data structures that involve multiple surfaces. -
__str__(self) -> str
: Generates a string representation of the PolySurface object. Provides a simple string that identifies the PolySurface, mainly through its class name. This is helpful for debugging, logging, or any scenario where a quick textual representation of the object is beneficial.
Returns the unique identifier of the PolySurface object. Similar to the NurbsSurface, this method provides the unique ID of the PolySurface, facilitating its identification and tracking across various operations or within data structures that involve multiple surfaces.
str
: The unique identifier of the PolySurface, prefixed with "id:".
poly_surface = PolySurface()
print(poly_surface.__id__())
# Output format: "id:{unique_id}"
Generates a string representation of the PolySurface object. Provides a simple string that identifies the PolySurface, mainly through its class name. This is helpful for debugging, logging, or any scenario where a quick textual representation of the object is beneficial.
str
: A string representation of the PolySurface object.
poly_surface = PolySurface()
print(poly_surface)
# Output: "PolySurface({self})"