Exemple #1
0
void ConicDomain::vertex_normal_at( const Mesh::VertexHandle* h,
                                    Vector3D coords[],
                                    unsigned count, 
                                    MsqError& ) const
{
  for (unsigned i = 0; i < count; ++i)
    vertex_normal_at( h[i], coords[i] );
}
Exemple #2
0
void CircleDomain::vertex_normal_at( const Mesh::VertexHandle* handles,
                                     Vector3D coordinates[],
                                     unsigned count,
                                     MsqError& err ) const
{
  for (unsigned i = 0; i < count; ++i)
    vertex_normal_at( handles[i], coordinates[i] );
  MSQ_SETERR(err)( "Cannot get normal for CircleDomain", MsqError::INTERNAL_ERROR );
}
void XYRectangle::closest_point( Mesh::VertexHandle vertex,
                                 const Vector3D& position,
                                 Vector3D& closest,
                                 Vector3D& normal,
                                 MsqError&  ) const
{
  normal = position;
  vertex_normal_at( vertex, normal );
  closest = position;
  closest[2] = 0;
}