|
| Curve () |
| the default constructor, creates the curve without insertion into the scene, it is good for the temporary curves.
|
|
| Curve (OneCurveObject *ob) |
| create Curve based on low-level object OneCurveObject
|
|
| Curve (SceneElement &el) |
| create the curve object based on the SceneElement, it is valid only is scene element is curve
|
|
Curve & | operator= (SceneElement &el) |
|
int | pointsCount () |
| get the base points cout in the curve
|
|
OneSelPoint * | point (int idx) |
| get the base point pointer
|
|
void | removePoints (int index, int count) |
| remove the points out of the curve base points list
|
|
OneCurveObject * | curve () |
| get the low-level ObjeCurveObject pointer
|
|
int | renderPointsCount () |
| returns the visual points count. Visual points used to render the curve in the viewport as set of straight lines.
|
|
OneSelPoint * | renderPoint (int idx) |
| returns the visual point reference
|
|
void | updatePoints () |
| update the visual points if need. Use this function if you cahnge the curve. Change the multiple parameters and then call this function if you need visual points. Othervice they will be updated automatically later.
|
|
bool & | closed () |
| returns the reference to the closed state of the curve to get or set the value
|
|
void | add (const Vector3D &p, const Vector3D &normal, float Radius) |
| add the point to the curve without the direct options the tangents
|
|
void | addSharp (const Vector3D &p, const Vector3D &normal, float Radius) |
| add the sharp point to the curve
|
|
void | addSmooth (const Vector3D &p, const Vector3D &normal, float Radius) |
| add the smooth B-spline-like point to the curve
|
|
void | addBothTangents (const Vector3D &p, const Vector3D &normal, const Vector3D &inTangent, const Vector3D &outTangent, float Radius) |
| add the point with two independent tangents.
|
|
void | addWithTangent (const Vector3D &p, const Vector3D &normal, const Vector3D &inOutTangent, float Radius) |
| add the point with the opposite tangents
|
|
void | tubeToMesh (Mesh &mesh, bool hemisphere) |
| create the solid tube around the curve using the points radius
|
|
std::tuple< vec3, vec3, vec3, vec3, float > | getPoint (int idx) |
| get the point of the curve
|
|
void | setPointPosition (int idx, const vec3 &p) |
| set the point position
|
|
void | setPointNormal (int idx, const vec3 &n) |
| set the point normal
|
|
void | setPointTangents (int idx, const vec3 &t1, const vec3 &t2) |
| set the point tangents
|
|
void | setPointRadius (int idx, float r) |
| set the point radius
|
|
bool | isOpen () |
| check if the curve is open
|
|
void | setOpen () |
| set the curve to be open
|
|
void | setClosed () |
| set the curve to be closed
|
|
void | unselectPoints () |
| unselect all curve points
|
|
void | selectPoint (int idx) |
| select the curve point
|
|
void | fill (Mesh &mesh, float thickness, float relax_count=0, float details_level=1, float extrusion=0) |
| Create the curved surface around the curve.
|
|
| SceneElement (VolumeObject *vo) |
|
| SceneElement (ItemsTree *c) |
|
| SceneElement (const SceneElement &other) |
|
const bool | operator== (const SceneElement &other) const |
|
const bool | operator!= (const SceneElement &other) const |
|
SceneElement | parent () const |
| get the parent scene graph element
|
|
int | childCount () const |
| returns the child elements count
|
|
SceneElement | child (int index) const |
| returns child element by index
|
|
bool | isSculptObject () const |
| Check if it is the sculpt object.
|
|
bool | isCurve () const |
| Check if the element is curve.
|
|
const SceneElement & | setTransform (const mat4 &Transform) const |
| Set the transform matrix.
|
|
const SceneElement & | transform (const mat4 &Transform) const |
| Additional transform over the object.
|
|
const SceneElement & | density (float density_value) const |
| this command useful if you use voxels, it sets the scale for the volume so that there will be density_value of voxels per mm
|
|
const SceneElement & | transform_single (const mat4 &Transform) const |
| Additional transform over the object, not applied to child objects.
|
|
mat4 | getTransform () const |
| get the scene element transform
|
|
const SceneElement & | clear () const |
| Clear the element content.
|
|
const char * | name () const |
| get the element name
|
|
const char * | getLinkedPath (int id) const |
| get the linked file path
|
|
int | linkedObjectCount () const |
| get the linked file path
|
|
void | addLinkedPath (const char *path) const |
| set the linked file path
|
|
const SceneElement & | rename (const char *name) const |
| rename the element
|
|
SceneElement | addChild (const char *name) const |
| add the child element of the same nature
|
|
SceneElement | findInSubtree (const char *name) const |
| find the element in subtree by name
|
|
bool | iterateSubtree (const std::function< bool(SceneElement)> &fn) const |
| iterate over the subtree
|
|
bool | iterateSubtree (const pybind11::object &fn) const |
| iterate over the subtree
|
|
bool | iterateVisibleSubtree (const std::function< bool(SceneElement)> &fn) const |
| iterate over the visible subtree
|
|
bool | iterateVisibleSubtree (const pybind11::object &fn) const |
| iterate over the visible subtree
|
|
void | mergeSubtree (bool booleanMerge=false) const |
| merge all subtree volumes into this
|
|
void | mergeTo (const SceneElement &dest, BoolOpType op) |
| merge the volume to another one, delete this volume
|
|
void | copyMergeTo (SceneElement &dest, BoolOpType op) |
| copy and merge the volume to another one, delete this volume
|
|
void | removeSubtree () const |
| remove the whole subtree
|
|
void | removeSubtreeItem (int index) const |
| remove one child from the subtree
|
|
void | remove () const |
| remove this item and all child objects from the scene
|
|
SceneElement | duplicate () const |
| diplicate the item
|
|
SceneElement | duplicateAsInstance () const |
| create the instance of the object if instancing supported
|
|
void | changeParent (SceneElement newParent) const |
| change the parent element for the current one
|
|
bool | isParentOf (SceneElement child) const |
| check if the element is parent of another one
|
|
bool & | visible () const |
| returns own visibility state reference. It does not take into account that parent may be invisible.
|
|
void | setVisibility (bool visible) const |
| set the visibility of the element
|
|
bool | ghost () const |
| returs the state of ghosting (if available)
|
|
void | setGhost (bool ghost) const |
| sets the ghosting state (if available)
|
|
vec4 | getReferenceColor () |
| get the reference color for the element
|
|
void | setReferenceColor (const vec4 &color) |
| set the reference color for the element
|
|
Volume | Volume () const |
| returns the volume object to operate over voxels or surface
|
|
void | select () const |
| add the object to selected
|
|
void | selectOne () const |
| unselect all similar elements and select this one
|
|
void | unselectAll () const |
| unselect all similar objects
|
|
bool | selected () |
| Check if the scene element is selected.
|
|
void | collectSelected (list< SceneElement > &elemList) |
| Collect the selected elements in the subtree (including this element if selected)
|
|
std::vector< SceneElement > | collectSelected () |
| Collect the selected elements in the subtree (including this element if selected)
|
|