GeometricObject
Extends:
Each geometric objects has several update functions, here they are:
- updateGeometry(movedPoint) must be called after any child point is changed (i.e. line's endpoint or arc's center was moved) recalculates inner parameters of the geometry (if present, i.e. center, angles)
- updateSizes(owningView)
must be called after camera or object has changed, and after any geometrical changes
recalculates any required sizing data (i.e.
widthvalue) automatically generated by mixinPixelSizedGeometry - updateVisualization() must be called after anything changes, which may influence visible representation of object updates or rebuilds a THREE.Mesh which visibly represent the object Note that each update function depends on the data obtained from the previous steps.
Here is general advice of how to call update functions:
- call updateGeometry directly and only inside controls handlers (when smth is edited)
- do not call other updates directly, just register each object with Sketcher.registerVisualization
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public |
|
|
Method Summary
| Public Methods | ||
| public |
|
|
Inherited Summary
| From class ClassCadObject | ||
| public get |
fullName: * |
|
| public |
members: * |
|
| public |
name: * |
|
| public |
type: * |
|
| public |
addMember(member: *, markAsFreshlyAdded: *) |
|
| public |
|
|
| public |
|
|
| public |
setFromObjectTree(objectTreeNode: *) |
|
| public |
updateFromServer(): * |
|
| public |
|
|