| 94 | } |
| 95 | |
| 96 | ScriptFace ScriptBrushNode::getFace(std::size_t index) |
| 97 | { |
| 98 | IBrushNodePtr brushNode = std::dynamic_pointer_cast<IBrushNode>(_node.lock()); |
| 99 | if (brushNode == NULL) return ScriptFace(); |
| 100 | |
| 101 | IBrush& brush = brushNode->getIBrush(); |
| 102 | return (index < brush.getNumFaces()) ? ScriptFace(brush.getFace(index)) : ScriptFace(); |
| 103 | } |
| 104 | |
| 105 | bool ScriptBrushNode::empty() const |
| 106 | { |