Version: 6.3.1
Public Member Functions | Private Attributes

StdMeshers_PrismAsBlock.TPCurveOnHorFaceAdaptor Class Reference

Class emulating pcurve on a hirizontal face. More...

Inheritance diagram for StdMeshers_PrismAsBlock.TPCurveOnHorFaceAdaptor:
Inheritance graph
[legend]

Public Member Functions

 TPCurveOnHorFaceAdaptor (const TSideFace *sideFace, const bool isTop, const TopoDS_Face &horFace)
gp_Pnt2d Value (const Standard_Real U) const
 Return UV on pcurve for the given normalized parameter.
Standard_Real FirstParameter () const
Standard_Real LastParameter () const

Private Attributes

const TSideFacemySide
int myZ
TopoDS_Face myFace

Detailed Description

Class emulating pcurve on a hirizontal face.

Definition at line 347 of file StdMeshers_Prism_3D.hxx.


Constructor & Destructor Documentation

StdMeshers_PrismAsBlock.TPCurveOnHorFaceAdaptor.TPCurveOnHorFaceAdaptor ( const TSideFace sideFace,
const bool  isTop,
const TopoDS_Face &  horFace 
)

Definition at line 353 of file StdMeshers_Prism_3D.hxx.

      : mySide(sideFace), myFace(horFace), myZ(isTop ? mySide->ColumnHeight() - 1 : 0 ) {}

Member Function Documentation

Standard_Real StdMeshers_PrismAsBlock.TPCurveOnHorFaceAdaptor.FirstParameter ( ) const

Definition at line 358 of file StdMeshers_Prism_3D.hxx.

{ return 0; }
Standard_Real StdMeshers_PrismAsBlock.TPCurveOnHorFaceAdaptor.LastParameter ( ) const

Definition at line 359 of file StdMeshers_Prism_3D.hxx.

{ return 1; }
gp_Pnt2d StdMeshers_PrismAsBlock.TPCurveOnHorFaceAdaptor::Value ( const Standard_Real  U) const

Return UV on pcurve for the given normalized parameter.

Parameters:
U- normalized parameter
Return values:
gp_Pnt- coordinates

Definition at line 2446 of file StdMeshers_Prism_3D.cxx.

References StdMeshers_PrismAsBlock.TSideFace.GetColumns(), StdMeshers_PrismAsBlock.TSideFace.GetNodeUV(), SMESH_Block.myFace, and StdMeshers_PrismAsBlock.mySide.

{
  TParam2ColumnIt u_col1, u_col2;
  double r = mySide->GetColumns( U, u_col1, u_col2 );
  gp_XY uv1 = mySide->GetNodeUV( myFace, u_col1->second[ myZ ]);
  gp_XY uv2 = mySide->GetNodeUV( myFace, u_col2->second[ myZ ]);
  return uv1 * ( 1 - r ) + uv2 * r;
}

Field Documentation

Definition at line 351 of file StdMeshers_Prism_3D.hxx.

Definition at line 349 of file StdMeshers_Prism_3D.hxx.

Definition at line 350 of file StdMeshers_Prism_3D.hxx.

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS