This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Programmatically generate rocket engine regenerative cooling geometry using CadQuery 2. | |
""" | |
import cadquery as cq | |
import math | |
import argparse | |
from tqdm import tqdm | |
import time | |
start_time = time.time() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ctypes | |
RtlDecompressBuffer = ctypes.windll.ntdll.RtlDecompressBuffer | |
RtlCompressBuffer = ctypes.windll.ntdll.RtlCompressBuffer | |
RtlGetCompressionWorkSpaceSize = ctypes.windll.ntdll.RtlGetCompressionWorkSpaceSize | |
Formats = { | |
"COMPRESSION_FORMAT_LZNT1" : ctypes.c_uint16(2), | |
"COMPRESSION_FORMAT_XPRESS" : ctypes.c_uint16(3), | |
"COMPRESSION_FORMAT_XPRESS_HUFF" : ctypes.c_uint16(4) |