#include <StdMeshers_Quadrangle_2D.hxx>
Classes | |
struct | Side |
struct | SideIterator |
Public Types | |
typedef boost::shared_ptr< FaceQuadStruct > | Ptr |
Public Member Functions | |
FaceQuadStruct (const TopoDS_Face &F=TopoDS_Face(), const std::string &nm="main") | |
Constructor of a quad. More... | |
bool | findCell (const gp_XY &uv, int &i, int &j) |
Finds indices of a grid quad enclosing the given enforced UV. More... | |
bool | isEqual (const gp_XY &uv, int i, int j) |
Checks if a given UV is equal to a given grid point. More... | |
bool | isNear (const gp_XY &uv, int &i, int &j, int nbLoops=1) |
Looks for UV in quads around a given (I,J) and precise (I,J) More... | |
int & | nbNodeOut (int iSide) |
void | normPa2IJ (double x, double y, int &i, int &j) |
Find indices (i,j) of a point in uv_grid by normalized parameters (x,y) More... | |
void | shift (size_t nb, bool keepUnitOri, bool keepGrid=false) |
Rotate sides of a quad CCW by given nb of quartes. More... | |
double & | U (int i, int j) |
void | updateUV (const gp_XY &uv, int i, int j, bool isVertical) |
Recompute UV of grid points around a moved point in one direction. More... | |
UVPtStruct & | UVPt (int i, int j) |
double & | V (int i, int j) |
Public Attributes | |
TopoDS_Face | face |
int | iSize |
int | jSize |
std::string | name |
std::vector< Side > | side |
Bnd_B2d | uv_box |
std::vector< UVPtStruct > | uv_grid |
typedef boost::shared_ptr<FaceQuadStruct> FaceQuadStruct::Ptr |
FaceQuadStruct::FaceQuadStruct | ( | const TopoDS_Face & | F = TopoDS_Face() , |
const std::string & | nm = "main" |
||
) |
Constructor of a quad.
References side.
Finds indices of a grid quad enclosing the given enforced UV.
References SMESH_MeshAlgos::GetBarycentricCoords(), iSize, isNear(), jSize, normPa2IJ(), uvPtStruct::UV(), uv_box, and UVPt().
Looks for UV in quads around a given (I,J) and precise (I,J)
References SMESH_MeshAlgos::GetBarycentricCoords(), iSize, jSize, uvPtStruct::UV(), and UVPt().
Referenced by findCell().
Find indices (i,j) of a point in uv_grid by normalized parameters (x,y)
References iSize, jSize, and UVPt().
Referenced by findCell().
Rotate sides of a quad CCW by given nb of quartes.
nb | - number of rotation quartes |
ori | - to keep orientation of sides as in an unit quad or not |
keepGrid | - if true Side::grid is not changed, Side::from and Side::to are altered instead |
References FaceQuadStruct::Side::contacts, DraftVecUtils::find(), iSize, jSize, side, uv_grid, and UVPt().
Referenced by draftguitools.gui_trimex.Trimex::action(), and draftguitools.gui_trimex.Trimex::trimObject().
References uvPtStruct::u, and UVPt().
Recompute UV of grid points around a moved point in one direction.
References iSize, jSize, uvPtStruct::u, uvPtStruct::UV(), UVPt(), uvPtStruct::v, uvPtStruct::x, and uvPtStruct::y.
UVPtStruct & FaceQuadStruct::UVPt | ( | int | i, |
int | j | ||
) |
References iSize, and uv_grid.
Referenced by findCell(), isEqual(), isNear(), normPa2IJ(), shift(), U(), updateUV(), and V().
References UVPt(), and uvPtStruct::v.
TopoDS_Face FaceQuadStruct::face |
int FaceQuadStruct::iSize |
Referenced by findCell(), isEqual(), isNear(), normPa2IJ(), shift(), updateUV(), and UVPt().
int FaceQuadStruct::jSize |
Referenced by findCell(), isEqual(), isNear(), normPa2IJ(), shift(), and updateUV().
std::string FaceQuadStruct::name |
Referenced by draftguitools.gui_groups.Ui_AddNamedGroup::accept(), prototype.Node::addtofreecad(), Addon.Addon::disable(), Addon.Addon::enable(), addonmanager_macro.Macro::filename(), gzip_utf8.GzipFile::filename(), addonmanager_macro.Macro::fill_details_from_code(), addonmanager_macro.Macro::fill_details_from_wiki(), Addon.Addon::get_cached_icon_filename(), ifc4.ifcapproval::hasidentifierorname(), addonmanager_macro.Macro::install(), Addon.Addon::is_disabled(), femsolver.elmer.sifio.Section::keys(), automotive_design.si_unit::named_unit_dimensions(), Mod.PartDesign.WizardShaft.SegmentFunction.SegmentFunction::output(), prototype.Node::pprint(), prototype.Node::pprint2(), PathScripts.PathSetupSheetGui.OpTaskPanel::propertyGroup(), PathScripts.PathSetupSheetGui.OpTaskPanel::propertyName(), PathScripts.PathJobGui.TaskPanel::reject(), addonmanager_macro.Macro::remove(), StdMeshers_Quadrangle_2D::splitQuad(), Addon.Addon::to_cache(), ifc2x3.ifcexternalreference::wr1(), ifc2x3.ifcdocumentreference::wr1(), ifc4.ifcexternalreference::wr1(), ifc4.ifcdocumentreference::wr1(), and automotive_design.general_property_association::wr2().
std::vector< Side > FaceQuadStruct::side |
Bnd_B2d FaceQuadStruct::uv_box |
Referenced by findCell().
std::vector< UVPtStruct> FaceQuadStruct::uv_grid |