当前位置: 首页 > news >正文

wordpress 自动图片页面优化的方法

wordpress 自动图片,页面优化的方法,免费创建网站,粮食门户网站建设方案OCC的基础知识可能还是要系统学习一下,部分导入的模型面类型是很多面都是GeomAbs_BSplineSurface,最终获取参数都要拟合一下,拟合后的生成的面对象没有大小,比如平面只有矢量(大小没有思路) 圆柱拟合面没有…

OCC的基础知识可能还是要系统学习一下,部分导入的模型面类型是很多面都是GeomAbs_BSplineSurface,最终获取参数都要拟合一下,拟合后的生成的面对象没有大小,比如平面只有矢量(大小没有思路) 圆柱拟合面没有高度(圆柱最后我用的投影的方法获取高度)。

本章,拾取的面按步距生成点云,因为没有大小或者没办法通过UV控制,所以尝试通过点云类直接操作

1、通过点云生成TopoDS_Shape

可以尝试BRepLib_PointCloudShape

2、通过TopoDS_Shape  直接生成点云。

BRepLib_PointCloudShape  这个类可以实现。

参考连接:Open Cascade 7.7.0 新功能:模拟三维扫描点云-BRepLib_PointCloudShape - unicornsir - 博客园

代码如下:

a.类继承和虚函数的实现:

class PointCloudPntFiller : public BRepLib_PointCloudShape
{
public:
    PointCloudPntFiller(Standard_Real theTol) : BRepLib_PointCloudShape(TopoDS_Shape(), theTol) {}
    void SetPointArray(const Handle(Graphic3d_ArrayOfPoints)& thePoints) { myPoints = thePoints; }

protected:
    virtual void addPoint(const gp_Pnt& thePoint,
        const gp_Vec& theNorm,
        const gp_Pnt2d& theUV,
        const TopoDS_Shape&) Standard_OVERRIDE
    {
        const Standard_Integer aPntIndex = myPoints->AddVertex(thePoint, theUV);
        if (theNorm.SquareMagnitude() > gp::Resolution())
        {
            myPoints->SetVertexNormal(aPntIndex, theNorm);
        }
        if (myPoints->HasVertexColors())
        {
            Quantity_Color aColor(360.0 * Standard_Real(aPntIndex) / Standard_Real(myPoints->VertexNumberAllocated()),
                1.0, 0.5, Quantity_TOC_HLS);
            myPoints->SetVertexColor(aPntIndex, aColor);
        }
    }

private:
    Handle(Graphic3d_ArrayOfPoints) myPoints;
};

b,.类的调用

    Handle(Graphic3d_ArrayOfPoints)thePoints=new  Graphic3d_ArrayOfPoints(10000, false, true);;
    PointCloudPntFiller thePointCloudPntFiller( Precision::Confusion());
    thePointCloudPntFiller.SetShape(aFace);
    thePointCloudPntFiller.SetDistance(uStep);
    thePointCloudPntFiller.SetPointArray(thePoints);
    thePointCloudPntFiller.GeneratePointsByDensity();

总结:

1、这个方法应该也可以根据密度生成网格小平面可以在和其他系统交互中把TopoDS_Shape 转换为数据

2、步距只能一个参数,不存UV 经纬这种操作。

我的遗留问题:为什么部分GeomAbs_BSplineSurface类型面通过BRepTools::UVBounds没办法获取大小。

double umin, umax, vmin, vmax;
BRepTools::UVBounds(aFace, umin, umax, vmin, vmax);

http://www.hengruixuexiao.com/news/30502.html

相关文章:

  • php如何做音乐网站网店推广的作用
  • 湖南网站建设推广廊坊seo排名公司
  • 网络教育网站如何做营销推广seo外包公司费用
  • 淘宝网站代理怎么做东莞今天最新消息新闻
  • uc官方网站开发中心2021年中国关键词
  • 17.zwd一起做网站池尾站下列哪些店铺适合交换友情链接
  • 郑州网站建设设计公司百度关键词排名原理
  • 百度竞价做网站建设百度如何添加店铺位置信息
  • 宁波企业网站推广效果好制作网站
  • b2b网站栏目建网站找哪个公司
  • 帝舵手表官方网站seo综合排名优化
  • 做网站可以不用框架吗本周国内重大新闻十条
  • 网站建设制作设计营销公司南宁少女长尾关键词挖掘
  • 手机网站注册高级seo是什么职位
  • 是做网站好还是做游戏好企业管理系统
  • 优质的集团网站建设微信公众号怎么开通
  • 西安做网站的公司怎么进行网站关键词优化
  • 江西省城乡和住房建设厅网站seo分析
  • 深圳网站建设李天亮新媒体营销
  • ps个人网站设计总结教程seo推广排名网站
  • 网站开发用什么框架好如何做个网站推广自己产品
  • 如何做网站对话框高级seo课程
  • 做垃圾词影响网站排名吗免费发布友链
  • 自己做发卡网站活动策划公司
  • 做网站的服务器有哪些网站优化招聘
  • 看优秀摄影做品的网站html网页制作
  • 海口建站价格如何建立自己的网站
  • 江都城乡建设局网站域名注册服务网站查询
  • 泵阀网站建设收录情况
  • 技术支持 广州骏域网站建设专家大同优化推广