00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __GU_PrimRBezSurf_h__
00022 #define __GU_PrimRBezSurf_h__
00023
00024 #include "GU_API.h"
00025 #include <GEO/GEO_PrimRBezSurf.h>
00026 #include <GEO/GEO_PrimNURBSurf.h>
00027 #include "GU_TPSurf.h"
00028
00029 class GB_EdgeGroup;
00030 class GU_Detail;
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043 class GU_API GU_PrimRBezSurf : public GEO_PrimRBezSurf, public GU_TPSurf
00044 {
00045 public:
00046
00047
00048 GU_PrimRBezSurf(GU_Detail *gdp);
00049
00050 virtual ~GU_PrimRBezSurf();
00051
00052 virtual void *castTo() const;
00053 virtual const GEO_Primitive *castToGeo(void) const;
00054
00055
00056
00057 int create(int rows, int cols, int orderu=4, int orderv=4,
00058 int wrapu = 0, int wrapv = 0,
00059 GEO_SurfaceType type = GEO_PATCH_QUADS,
00060 int appendPoints = 1);
00061
00062
00063
00064 GEO_PrimNURBSurf *convertToNURBNew(void);
00065
00066
00067
00068 GEO_Primitive *convertToTriBezNew(GU_ConvertParms &parms);
00069
00070 GEO_Primitive *convertNew(GU_ConvertParms &parms);
00071
00072
00073
00074
00075 virtual GEO_Hull *reconfigure(unsigned type, int orderu, int orderv,
00076 int openu, int openv, int, int) const;
00077
00078
00079
00080 virtual void changedVertices(void);
00081
00082
00083
00084
00085
00086
00087
00088 virtual GU_TPSurf *cutU(float u1, float u2,
00089 int &ind1, int &ind2, int keep);
00090 virtual GU_TPSurf *cutV(float v1, float v2,
00091 int &ind1, int &ind2, int keep);
00092
00093
00094 virtual void openAtU(float u);
00095 virtual void openAtV(float v);
00096
00097
00098
00099
00100
00101
00102
00103 int split(int every_patch = 0,
00104 int append_points = 0,
00105 GB_PrimitiveGroup *out_prims = 0);
00106
00107
00108
00109 virtual GEO_Curve *buildRowCurve(int appendPoints = 1,
00110 GU_Detail *parent = 0) const;
00111 virtual GEO_Curve *buildColCurve(int appendPoints = 1,
00112 GU_Detail *parent = 0) const;
00113
00114
00115
00116
00117
00118
00119
00120 static GU_PrimRBezSurf *build( GU_Detail *gudp,
00121 int rows, int cols,
00122 int orderu = 4, int orderv = 4,
00123 int wrapu = 0, int wrapv = 0,
00124 GEO_SurfaceType type = GEO_PATCH_QUADS,
00125 int appendPoints = 1);
00126
00127
00128
00129
00130
00131 int removeEdges(const GB_EdgeGroup &edges,
00132 UT_BitArray *remove_edges=0);
00133
00134
00135 protected:
00136 virtual GEO_Hull *getSubHull(int top, int left, int bottom, int right,
00137 GEO_SubHullFlags break_flags);
00138
00139 private:
00140 };
00141
00142 #endif