For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

GeomPlate_Surface Bug !

varcol's picture

Most recently I wrote some code that shall display an approximation of a cloud of points.

Here is the vital part of it, that causes severe problems compiling:

GeomPlate_BuildPlateSurface BPSurf(3,15,2);
Handle(GeomPlate_Surface) PSurf=BPSurf.Surface();
Standard_Real Umin, Umax, Vmin, Vmax;
PSurf.Bounds( Umin, Umax, Vmin, Vmax);

The compiler complaints:
... no matching function for call to `Handle_GeomPlate_Surface::Bounds (Standard_Real &, Standard_Real &, Standard_Real &, Standard_Real &)'

I have tried anything and all variants with or without Handle, Pointers...
like PSurf->Bounds( Umin, Umax, Vmin, Vmax);

The OCC 5.0 source-code of this suspect method says:
void GeomPlate_Surface::Bounds(Standard_Real& U1, Standard_Real& U2, Standard_Real& V1, Standard_Real& V2) const
if (mySurfinit->DynamicType() == STANDARD_TYPE(GeomPlate_Surface))

What to do now ? Is it a bug in OCC ???

Any hints and tricks are welcome !!!


varcol's picture

Please, oh God in heaven let someone finally wake up in this community with an idea. It just cannot be, that no one has ever used GeomPlate_Surface.
Just can't be.

Come on folks, say something...


Wahab_shah's picture

You forgot to add the last argument of Tolerance