Ejemplo n.º 1
0
bool CqCurve::GetNormal( TqInt index, CqVector3D& normal ) const
{
	if ( N() != NULL )
	{
		normal = N()->pValue( index )[0];
		return true;
	}
	else
	{
		bool CSO = pTransform()->GetHandedness(pTransform()->Time(0));
		bool O = pAttributes() ->GetIntegerAttribute( "System", "Orientation" ) [ 0 ] != 0;
		if ( (O && CSO) || (!O && !CSO) )
			normal = CqVector3D(0, 0, -1);
		else
			normal = CqVector3D(0, 0, 1);
		return false;
	}
}
Ejemplo n.º 2
0
pTransform DummyTransformDesc::
        createTransform() const
{
    return pTransform(new DummyTransform);
}
Ejemplo n.º 3
0
pTransform DrawnWaveform::
        createTransform() const
{
    return pTransform(new DrawnWaveform());
}