草稿

清除电脑的缓存

1
2
3
4
5
6
7
8
del /f /s /q %windir%\prefetch\*.*
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q “%userprofile%\Local Settings\Temp\*.*”
del /f /s /q “%userprofile%\recent\*.*”

rd %temp% /s /q
md %temp%

点云环境配置文件

https://blog.csdn.net/simonyucsdy/article/details/103361203
https://blog.csdn.net/qq_41938858/article/details/81588709
https://blog.csdn.net/feierban/article/details/80283727

多线程程序的写法

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#include <iostream>
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
#include <pcl/kdtree/kdtree_flann.h>
#include <pcl/io/pcd_io.h>
#include <vector>
#include <thread>

const int numThreads = 4; // 定义线程数量

void computeResolutionThread(const pcl::PointCloud<pcl::PointXYZ>::ConstPtr& cloud, int startIdx, int endIdx, double& resolution)
{
int numberOfPoints = 0;
int nres;
std::vector<int> indices(2);
std::vector<float> squaredDistances(2);
pcl::search::KdTree<pcl::PointXYZ> tree;
tree.setInputCloud(cloud);

for (int i = startIdx; i < endIdx; ++i)
{
if (!pcl::isFinite(cloud->points[i]))
continue;
nres = tree.nearestKSearch(i, 2, indices, squaredDistances);
if (nres == 2)
{
resolution += sqrt(squaredDistances[1]);
++numberOfPoints;
}
}
}

double computeResolution(const pcl::PointCloud<pcl::PointXYZ>::ConstPtr& cloud)
{
double resolution = 0.0;
int numPoints = cloud->size();
std::vector<std::thread> threads;

for (int i = 0; i < numThreads; ++i)
{
int startIdx = i * (numPoints / numThreads);
int endIdx = (i == numThreads - 1) ? numPoints : (i + 1) * (numPoints / numThreads);
threads.emplace_back(computeResolutionThread, cloud, startIdx, endIdx, std::ref(resolution));
}

for (auto& thread : threads)
{
thread.join();
}

if (numPoints != 0)
resolution /= numPoints;

return resolution;
}

int main()
{
pcl::PointCloud<pcl::PointXYZ>::Ptr cloud(new pcl::PointCloud<pcl::PointXYZ>);
// 加载点云数据到cloud中

double resolution = computeResolution(cloud);
std::cout << "Resolution: " << resolution << std::endl;

return 0;
}

BIMAngle 毕安格

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38

# Run follow scripts within Package Manager Console, to ensure the "BimAngle Engine SDK" available.
# Please ignore error messages in the execution of the script, as it is designed to do

# Uninstall-Package -Id Bimangle.ForgeEngine.Extension.Cesium3DTiles
# Uninstall-Package -Id Bimangle.ForgeEngine.Extension.Gltf

NuGet\Update-Package -Id Bimangle.ForgeEngine.Common -Project Bimangle.ForgeEngine.Georeferncing

NuGet\Update-Package -Id Bimangle.ForgeEngine.Revit2014 -Project Bimangle.ForgeEngine.Revit_R2014
NuGet\Update-Package -Id Bimangle.ForgeEngine.Revit2015 -Project Bimangle.ForgeEngine.Revit_R2015
NuGet\Update-Package -Id Bimangle.ForgeEngine.Revit2016 -Project Bimangle.ForgeEngine.Revit_R2016
NuGet\Update-Package -Id Bimangle.ForgeEngine.Revit2017 -Project Bimangle.ForgeEngine.Revit_R2017
NuGet\Update-Package -Id Bimangle.ForgeEngine.Revit2018 -Project Bimangle.ForgeEngine.Revit_R2018
NuGet\Update-Package -Id Bimangle.ForgeEngine.Revit2019 -Project Bimangle.ForgeEngine.Revit_R2019
NuGet\Update-Package -Id Bimangle.ForgeEngine.Revit2020 -Project Bimangle.ForgeEngine.Revit_R2020
NuGet\Update-Package -Id Bimangle.ForgeEngine.Revit2021 -Project Bimangle.ForgeEngine.Revit_R2021
NuGet\Update-Package -Id Bimangle.ForgeEngine.Revit2022 -Project Bimangle.ForgeEngine.Revit_R2022
NuGet\Update-Package -Id Bimangle.ForgeEngine.Revit2023 -Project Bimangle.ForgeEngine.Revit_R2023
NuGet\Update-Package -Id Bimangle.ForgeEngine.Revit2024 -Project Bimangle.ForgeEngine.Revit_R2024
NuGet\Update-Package -Id Bimangle.ForgeEngine.Navisworks2014 -Project Bimangle.ForgeEngine.Nw_R2014
NuGet\Update-Package -Id Bimangle.ForgeEngine.Navisworks2015 -Project Bimangle.ForgeEngine.Nw_R2015
NuGet\Update-Package -Id Bimangle.ForgeEngine.Navisworks2016 -Project Bimangle.ForgeEngine.Nw_R2016
NuGet\Update-Package -Id Bimangle.ForgeEngine.Navisworks2017 -Project Bimangle.ForgeEngine.Nw_R2017
NuGet\Update-Package -Id Bimangle.ForgeEngine.Navisworks2018 -Project Bimangle.ForgeEngine.Nw_R2018
NuGet\Update-Package -Id Bimangle.ForgeEngine.Navisworks2019 -Project Bimangle.ForgeEngine.Nw_R2019
NuGet\Update-Package -Id Bimangle.ForgeEngine.Navisworks2020 -Project Bimangle.ForgeEngine.Nw_R2020
NuGet\Update-Package -Id Bimangle.ForgeEngine.Navisworks2021 -Project Bimangle.ForgeEngine.Nw_R2021
NuGet\Update-Package -Id Bimangle.ForgeEngine.Navisworks2022 -Project Bimangle.ForgeEngine.Nw_R2022
NuGet\Update-Package -Id Bimangle.ForgeEngine.Navisworks2023 -Project Bimangle.ForgeEngine.Nw_R2023
NuGet\Update-Package -Id Bimangle.ForgeEngine.Navisworks2024 -Project Bimangle.ForgeEngine.Nw_R2024

NuGet\Update-Package -Id Bimangle.ForgeEngine.Dgn -Project Bimangle.ForgeEngine.Dgn
NuGet\Update-Package -Id Bimangle.ForgeEngine.Skp -Project Bimangle.ForgeEngine.Skp
NuGet\Update-Package -Id Bimangle.ForgeEngine.3DXML -Project Bimangle.ForgeEngine.3DXML
NuGet\Update-Package -reinstall

# You can rebuild now!

UnrealEngine

懂得UE蓝图的基本使用
C++\C#
蓝图
可视化编程的工具 dynamo 节点拖拽 功能的快速开发

  • 基础的蓝图开发能力 功能实现
    学会去用UMG 用户自定义界面 搭建原型 界面 高/低保真

  • 偏前端:按钮 输入框 搭建 交互

  • UE的美工

Stable Diffusion的用法

1
2
python -m pip install -r "D:\AI\stable-diffusion-webui-master\requirements_versions.txt" --prefer-binary
python -m pip install GitPython==3.1.30 -i https://pypi.doubanio.com/simple/ --trusted-host pypi.doubanio.com
script level 4
1
2
3
4
5
6
7
8
你现在是一Prompt生成的AI·我将在之后框中输入Concept,然后你会将Concept转换为可供图像生成AI使用的Prompt和Negative Prompt。使用括号()可以增加关键词的权重为1.1倍,而使用方括[]减少权重为0.91倍。以下是范例

Concept:挪威的女人
Prompt: professional portrait photograph of a gorgeous Norwegian girlin Winter clothing with long wavy blonde hair, ( (sultry firty look) ),freckles, beautiful symmetrical face, cute natural makeup,( (standing outside in snowy city street) ), stunning modern urbanupscale environment, ultra realistic, Concept art, elegant, highlydetailed, intricate, sharp focus, depth of feld, f/1.8,85mm, mediumshot, mid shot, (centered image composition), (professionally colorgraded), ( (bright soft diffused light) ),volumetric fog, trending oninstagram, trending on tumblr, hdr 4k,8k

Negative Prompt: (bonnet), (hat), (beanie), cap, ( ( (wide shot) )),(cropped head), bad framing, out of frame, deformed, cripple, old,fat,ugly, poor, missing arm, additional arms, additional legs,additional head, additional face, multiple people, group of people,dyed hair, black and white, grayscale

如果你了解了,请等待我输入Concept