This documentation is for the free plugin Py4D in CINEMA 4D R11.5 and not for the C4DSDK of Python in CINEMA 4D R12. For R12, please visit PluginCafe.com
This is a class for polygon objects.
PointObject
| Parameters: |
|
|---|---|
| Return type: | |
| Returns: | The object. |
Return the selected polygons.
| Return type: | BaseSelect |
|---|---|
| Returns: | A reference to the selected polygon structure. |
Return the hidden polygons.
| Return type: | BaseSelect |
|---|---|
| Returns: | A reference to the hidden polygon structure. |
Return the selected edges.
| Return type: | BaseSelect |
|---|---|
| Returns: | A reference to the selected edge structure. |
Return the edge polygons.
| Return type: | BaseSelect |
|---|---|
| Returns: | A reference to the edge polygon structure. |
Set a polygon.
Note
Call obj.Message(c4d.MSG_UPDATE) after you set all your points to update the object.
| Parameters: |
|
|---|---|
| Raises IndexError: | |
The index is out of range. |
|
Change the number of points and polygons in the object. If vcnt is -1 or not set, the method of PointObject.resize_object is used.
| Parameters: |
|
|---|---|
| Return type: | bool |
| Returns: | Success of changing the number of points and segments. |
Get the phong break edges. The edges are indexed by 4 * polygon + edge where polygon is the polygon index and edge is the edge index between 0 and 3.
Warning
If you change this selection you must make sure that its still valid, so that shared edges have a well-defined phong break status.
| Return type: | BaseSelect |
|---|---|
| Returns: | The phong break. |
Gets a translation map from polygon indices to N-gon indices.
| Return type: | list of ints |
|---|---|
| Returns: | A list of index map or None. |
Returns all polygons.
| Return type: | list of CPolygon |
|---|---|
| Returns: | A list of copied polygons. |
Returns a list with the stored phong normals of the object.
| Return type: | list of Vectors or None |
|---|---|
| Returns: | Returns the list or None if the object has no Phong Tag. |
Returns the count of polygons. Is the fastest way to get the count of polygons.
| Return type: | int |
|---|---|
| Returns: | The count. |
Returns the count of ngons.
| Return type: | int |
|---|---|
| Returns: | The count. |