using namespace HDK_Sample;
void
{
"hom_wave", "HOM Wave",
1, 1));
}
{
}
};
SOP_HOMWave::SOP_HOMWave(
{
}
void
SOP_HOMWave::cookWithHOM()
{
dynamic_cast<HOM_SopNode*>(hou.
pwd()))->geometry());
double f = hou.
frame() * 0.03;
std::vector<HOM_ElemPtr<HOM_Point> >
points = geo->points();
std::vector<double> pos_vector(3);
for (int i=0; i<points.size(); ++i)
{
pos[1] =
sin(pos[0] * 0.2 + pos[2] * 0.3 + f);
for (int i=0; i<3; ++i)
pos_vector[i] = pos[i];
p->setPosition(pos_vector);
}
}