MCPcopy Create free account

hub / github.com/ModelRift/terrain-to-3d / functions

Functions136 in github.com/ModelRift/terrain-to-3d

↓ 70 callersFunctioncn
(...inputs: ClassValue[])
src/lib/utils.ts:4
↓ 10 callersFunctionpost
(msg: WorkerPayload, transfer?: Transferable[])
src/workers/openscad.worker.ts:23
↓ 10 callersFunctionset
(key: K, value: TerrainParams[K])
src/components/terrain-controls.tsx:56
↓ 8 callersFunctionparseNumber
(searchParams: URLSearchParams, keys: string[])
src/lib/url-state.ts:20
↓ 7 callersFunctionclamp
(value: number, min: number, max: number)
src/lib/url-state.ts:16
↓ 3 callersFunctiondownloadBlob
(data: Uint8Array, filename: string, mime = "application/octet-stream")
src/lib/download.ts:1
↓ 3 callersFunctionformatSize
(bytes: number)
src/lib/openscad.ts:17
↓ 2 callersFunctioncomputeModelFootprint
(longSideMm: number, width: number, height: number)
src/App.tsx:34
↓ 2 callersFunctionheightmapToDat
(heightmap: Uint8Array, width: number, height: number)
src/lib/scad-template.ts:90
↓ 2 callersFunctionheightmapToDataUrl
( heightmap: Uint8Array, width: number, height: number )
src/lib/heightmap.ts:22
↓ 2 callersFunctionlatToY
(lat: number, n: number)
src/lib/terrain.ts:26
↓ 2 callersFunctionlonToX
(lon: number, n: number)
src/lib/terrain.ts:23
↓ 2 callersFunctionreadGitValue
(command: string)
vite.config.ts:19
↓ 2 callersFunctionxToLon
(x: number, n: number)
src/lib/terrain.ts:32
↓ 2 callersFunctionyToLat
(y: number, n: number)
src/lib/terrain.ts:35
↓ 1 callersFunctionapplyPreset
(preset: LocationPreset)
src/components/terrain-controls.tsx:60
↓ 1 callersFunctionbootstrapDemo
()
src/App.tsx:114
↓ 1 callersFunctionbuildSearchParams
(params: TerrainUrlParams)
src/lib/url-state.ts:30
↓ 1 callersFunctionbuildTerrainVertexColors
(geometry: THREE.BufferGeometry)
src/components/terrain-viewer.tsx:34
↓ 1 callersFunctioncompileScadToStl
( scadCode: string, datContent: string, onLog?: (msg: string) => void )
src/lib/openscad.ts:23
↓ 1 callersFunctioncomputeMinMax
(values: Float32Array)
src/lib/geotiff-heightmap.ts:107
↓ 1 callersFunctioncomputeModelHeightMm
(params: ScadParams)
src/lib/scad-template.ts:24
↓ 1 callersFunctioncreateInstance
(onLog?: (msg: string) => void)
src/lib/openscad.ts:3
↓ 1 callersFunctionestimateSpanMeters
(bounds: [number, number, number, number])
src/lib/geotiff-heightmap.ts:35
↓ 1 callersFunctionfetchAndDecodeTile
( z: number, x: number, y: number )
src/lib/terrain.ts:41
↓ 1 callersFunctionfillNoDataNearest
(values: Float32Array, valid: Uint8Array, width: number, height: number)
src/lib/geotiff-heightmap.ts:61
↓ 1 callersFunctionfindLocationPresetByCoords
( lat: number, lon: number, tolerance = 1e-6 )
src/lib/location-presets.ts:90
↓ 1 callersFunctionfixTerrainGeometry
(rawGeometry: THREE.BufferGeometry)
src/components/terrain-viewer.tsx:87
↓ 1 callersFunctiongenerateHeightmap
( params: TerrainParams, onProgress?: (msg: string) => void )
src/lib/terrain.ts:66
↓ 1 callersFunctiongenerateHeightmapFromGeoTiff
( params: GeoTiffHeightmapParams, onProgress?: (msg: string) => void )
src/lib/geotiff-heightmap.ts:127
↓ 1 callersFunctiongenerateScad
(params: ScadParams, width: number, height: number)
src/lib/scad-template.ts:39
↓ 1 callersFunctionhasPhysicalSpan
(params: Pick<ScadParams, "spanXMeters" | "spanYMeters">)
src/lib/scad-template.ts:13
↓ 1 callersFunctionheightmapToPngBlob
( heightmap: Uint8Array, width: number, height: number )
src/lib/heightmap.ts:2
↓ 1 callersFunctionisLikelyGeographicBounds
(bounds: [number, number, number, number])
src/lib/geotiff-heightmap.ts:23
↓ 1 callersFunctionisPresetActive
(preset: LocationPreset)
src/components/terrain-controls.tsx:62
↓ 1 callersFunctionloadDemoTerrainAssets
()
src/lib/demo-assets.ts:63
↓ 1 callersFunctionparseDatHeightmap
(content: string)
src/lib/demo-assets.ts:10
↓ 1 callersFunctionreadPackageVersion
()
vite.config.ts:9
↓ 1 callersFunctionreadTerrainUrlState
(defaultParams: TerrainUrlParams)
src/lib/url-state.ts:47
↓ 1 callersFunctiontoUint8Heightmap
(values: Float32Array, lo: number, hi: number)
src/lib/geotiff-heightmap.ts:118
↓ 1 callersFunctionuseOpenscadWorker
()
src/hooks/use-openscad-worker.ts:27
↓ 1 callersFunctionwriteTerrainUrlState
(params: TerrainUrlParams)
src/lib/url-state.ts:91
FunctionAlertDialog
({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>)
src/components/ui/alert-dialog.tsx:7
FunctionAlertDialogAction
({ className, variant = "default", size = "default", ...props }: React.ComponentProps<typeof AlertDial
src/components/ui/alert-dialog.tsx:133
FunctionAlertDialogCancel
({ className, variant = "outline", size = "default", ...props }: React.ComponentProps<typeof AlertDial
src/components/ui/alert-dialog.tsx:151
FunctionAlertDialogContent
({ className, size = "default", ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content> &
src/components/ui/alert-dialog.tsx:42
FunctionAlertDialogDescription
({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>)
src/components/ui/alert-dialog.tsx:120
FunctionAlertDialogFooter
({ className, ...props }: React.ComponentProps<"div">)
src/components/ui/alert-dialog.tsx:78
FunctionAlertDialogHeader
({ className, ...props }: React.ComponentProps<"div">)
src/components/ui/alert-dialog.tsx:65
FunctionAlertDialogMedia
({ className, ...props }: React.ComponentProps<"div">)
src/components/ui/alert-dialog.tsx:94
FunctionAlertDialogOverlay
({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>)
src/components/ui/alert-dialog.tsx:29
FunctionAlertDialogPortal
({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>)
src/components/ui/alert-dialog.tsx:21
FunctionAlertDialogTitle
({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>)
src/components/ui/alert-dialog.tsx:107
FunctionAlertDialogTrigger
({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>)
src/components/ui/alert-dialog.tsx:13
FunctionApp
()
src/App.tsx:50
FunctionBadge
({ className, variant = "default", asChild = false, ...props }: React.ComponentProps<"span"> & Varia
src/components/ui/badge.tsx:26
FunctionButton
({ className, variant = "default", size = "default", asChild = false, ...props }: React.ComponentPro
src/components/ui/button.tsx:37
FunctionCard
({ className, size = "default", ...props }: React.ComponentProps<"div"> & { size?: "default" | "sm" })
src/components/ui/card.tsx:5
FunctionCardAction
({ className, ...props }: React.ComponentProps<"div">)
src/components/ui/card.tsx:53
FunctionCardContent
({ className, ...props }: React.ComponentProps<"div">)
src/components/ui/card.tsx:66
FunctionCardDescription
({ className, ...props }: React.ComponentProps<"div">)
src/components/ui/card.tsx:43
FunctionCardFooter
({ className, ...props }: React.ComponentProps<"div">)
src/components/ui/card.tsx:76
FunctionCardHeader
({ className, ...props }: React.ComponentProps<"div">)
src/components/ui/card.tsx:20
FunctionCardTitle
({ className, ...props }: React.ComponentProps<"div">)
src/components/ui/card.tsx:33
FunctionComboboxChip
({ className, children, showRemove = true, ...props }: ComboboxPrimitive.Chip.Props & { showRemove?:
src/components/ui/combobox.tsx:226
FunctionComboboxChips
({ className, ...props }: React.ComponentPropsWithRef<typeof ComboboxPrimitive.Chips> & ComboboxPrimitiv
src/components/ui/combobox.tsx:212
FunctionComboboxChipsInput
({ className, ...props }: ComboboxPrimitive.Input.Props)
src/components/ui/combobox.tsx:257
FunctionComboboxClear
({ className, ...props }: ComboboxPrimitive.Clear.Props)
src/components/ui/combobox.tsx:39
FunctionComboboxCollection
({ ...props }: ComboboxPrimitive.Collection.Props)
src/components/ui/combobox.tsx:183
FunctionComboboxContent
({ className, side = "bottom", sideOffset = 6, align = "start", alignOffset = 0, anchor, ...prop
src/components/ui/combobox.tsx:89
FunctionComboboxEmpty
({ className, ...props }: ComboboxPrimitive.Empty.Props)
src/components/ui/combobox.tsx:189
FunctionComboboxGroup
({ className, ...props }: ComboboxPrimitive.Group.Props)
src/components/ui/combobox.tsx:160
FunctionComboboxInput
({ className, children, disabled = false, showTrigger = true, showClear = false, ...props }: Combo
src/components/ui/combobox.tsx:52
FunctionComboboxItem
({ className, children, ...props }: ComboboxPrimitive.Item.Props)
src/components/ui/combobox.tsx:136
FunctionComboboxLabel
({ className, ...props }: ComboboxPrimitive.GroupLabel.Props)
src/components/ui/combobox.tsx:170
FunctionComboboxList
({ className, ...props }: ComboboxPrimitive.List.Props)
src/components/ui/combobox.tsx:123
FunctionComboboxSeparator
({ className, ...props }: ComboboxPrimitive.Separator.Props)
src/components/ui/combobox.tsx:199
FunctionComboboxTrigger
({ className, children, ...props }: ComboboxPrimitive.Trigger.Props)
src/components/ui/combobox.tsx:22
FunctionComboboxValue
({ ...props }: ComboboxPrimitive.Value.Props)
src/components/ui/combobox.tsx:18
FunctionDropdownMenu
({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>)
src/components/ui/dropdown-menu.tsx:7
FunctionDropdownMenuCheckboxItem
({ className, children, checked, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitiv
src/components/ui/dropdown-menu.tsx:82
FunctionDropdownMenuContent
({ className, align = "start", sideOffset = 4, ...props }: React.ComponentProps<typeof DropdownMenuPri
src/components/ui/dropdown-menu.tsx:32
FunctionDropdownMenuGroup
({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>)
src/components/ui/dropdown-menu.tsx:51
FunctionDropdownMenuItem
({ className, inset, variant = "default", ...props }: React.ComponentProps<typeof DropdownMenuPrimitiv
src/components/ui/dropdown-menu.tsx:59
FunctionDropdownMenuLabel
({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & { inset?:
src/components/ui/dropdown-menu.tsx:159
FunctionDropdownMenuPortal
({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>)
src/components/ui/dropdown-menu.tsx:13
FunctionDropdownMenuRadioGroup
({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>)
src/components/ui/dropdown-menu.tsx:116
FunctionDropdownMenuRadioItem
({ className, children, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem
src/components/ui/dropdown-menu.tsx:127
FunctionDropdownMenuSeparator
({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>)
src/components/ui/dropdown-menu.tsx:176
FunctionDropdownMenuShortcut
({ className, ...props }: React.ComponentProps<"span">)
src/components/ui/dropdown-menu.tsx:189
FunctionDropdownMenuSub
({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>)
src/components/ui/dropdown-menu.tsx:202
FunctionDropdownMenuSubContent
({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>)
src/components/ui/dropdown-menu.tsx:232
FunctionDropdownMenuSubTrigger
({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigge
src/components/ui/dropdown-menu.tsx:208
FunctionDropdownMenuTrigger
({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>)
src/components/ui/dropdown-menu.tsx:21
FunctionField
({ className, orientation = "vertical", ...props }: React.ComponentProps<"div"> & VariantProps<typeof fi
src/components/ui/field.tsx:62
FunctionFieldContent
({ className, ...props }: React.ComponentProps<"div">)
src/components/ui/field.tsx:78
FunctionFieldDescription
({ className, ...props }: React.ComponentProps<"p">)
src/components/ui/field.tsx:121
FunctionFieldError
({ className, children, errors, ...props }: React.ComponentProps<"div"> & { errors?: Array<{ message
src/components/ui/field.tsx:163
FunctionFieldGroup
({ className, ...props }: React.ComponentProps<"div">)
src/components/ui/field.tsx:33
FunctionFieldLabel
({ className, ...props }: React.ComponentProps<typeof Label>)
src/components/ui/field.tsx:91
next →1–100 of 136, ranked by callers