CustomPrimitive
 
 
 

Custom Primitive

This example demonstrates several C++ implementation of custom primitives.

Example Files

Location
Files
CustomBox.cpp
CustomCapsule.cpp
CustomCylinder.cpp
CustomPyramid.cpp
CustomQuad.cpp
CustomQuadPrism.cpp
CustomRect.cpp
CustomTest.cpp
CustomTri.cpp

Running the Example

To run the example

  • After loading the plugin, the example custom primitives can be created from Get > Primitive > Implicit menu. There are 9 custom primitives in this example, Box, Capsule, Cylinder, Pyramid, Quad, QuadPrism, Rect, Test and Tri.

    ConvertToGeom callback

    The Custom Tri example demonstrates the ConvertToGeom callback. Call SIConvert on a Tri object to convert it into a normal mesh.

    PPGEvent callback

    The Custom Box example demonstrates the PPGEvent callback. Create a custom Box object. In the PPG displayed, try changing the values and notice the events logged in the script log.

Keywords

This example uses the following keywords:

CPP example, CustomPrimitive, self-installed plug-in