加载中…
个人资料
M_小蜗牛
M_小蜗牛
  • 博客等级:
  • 博客积分:0
  • 博客访问:3,677
  • 关注人气:17
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
博文
(2023-06-29 10:27)
分类: Linux
文件上传: scp 'C:\Users\Administrator\Desktop\publish.zip' root@192.168.11.128:/root/usr/dotnet
    • 进入supervisord主配置文件: cat /etc/supervisord.conf
    • 创建一个目录 mkdir /etc/supervisor.p/ -p
    • 创建服务:touch nginx.ini
    • 打开配置文件 # vim /etc/supervisord.conf
    • 查询进程 ps -ef|grep supervisor
分类: Revit开发笔记
private static void Test01(Document document)
        {
            //测试数据,三个点
            XYZ start1 = new XYZ(0, 0, 0);
            XYZ end = new XYZ(100, 0, 0);
            XYZ end6 = new XYZ(100, 100, 0);

            var outVertices = new List();

            outVertices.Add(start1);
            outVertices.Add(end);
            outVertices.Add(end6);

            //1.输入点集合、材料ID 创建细分面
            var tessFace = new TessellatedFace(outVertices, new ElementId(392544));
分类: UE5_C
  // Fill out your copyright notice in the Description page of Project Settings.


#include 'SimplePictureToolsLibrary.h'

#include 'IImageWrapper.h'
#include 'IImageWrapperModule.h'

bool USimplePictureToolsLibrary::LoadImageToTextrue2D(
分类: AITensorflow研究
import tensorflow as tf
import matplotlib.pylab as plt
print(tf.test.is_built_with_gpu_support())
print(tf.test.is_built_with_rocm())

data_path='./cat.jpg'
image_raw_data1 = tf.io.read_file(data_path,None)
image = tf.image.decode_image(contents=image_raw_data1,channels=3)
image_jpg = tf.image.decode_jpeg(image_raw_data1,channels=3)
#print(type(image))
#plt.imshow(image)
plt.imshow(image_jpg)
image_jpg = image_jpg.numpy()
print(type(image_jpg) ) 
print(image_jpg.shape) 



(717, 719, 3)
分类: Revit开发笔记
Point3dCollection pt3dCol = new Point3dCollection();
sortLine[i].IntersectWith(sortLine[i + 1], Intersect.ExtendBoth, pt3dCol, 0, 0);
分类: Revit开发笔记
///
        /// 求出线的交点
        ///
        ///
        ///
        public static List CurveCrossCurvePoints(List ls3ds,Tolerance tolerance)
        {
            List crossPts = new List();
            for (int i = 0; i < ls3ds.Count - 1; i++)
            {
                for (int j = i + 1; j < ls3ds.Count; j++)
                {
                    Point3d[] ptArray = ls3ds[i].IntersectWith(ls3ds[j],tolerance);
                    if (ptArray
分类: Revit开发笔记
     public Result OnStartup(UIControlledApplication application)

 //可停靠窗口
            string m_mainPageGuid = 'C8BFE771-D9F1-47E1-8934-A425D2358F80';
            DockablePaneTest m_mainPage = new DockablePaneTest(application);
            Guid retval = Guid.Empty;
            retval = new Guid(m_mainPageGuid);
            DockablePaneId sm_UserDockablePaneId = new DockablePaneId(retval);
            application.RegisterDockablePane(sm_UserDockablePaneId,'DockblePaneTest',m_mainPage as IDockablePaneProvider);


            //注册事件
            try
&
Ribbon菜单的空间有限,因此可能需要大量控件放在一个Windows窗体里,
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有